-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add plugins including image-upload (#12)
This adds the image upload "plugin" and all the desired built-in plugins. Per the following two tickets https://openedx.atlassian.net/browse/TNL-9367 https://openedx.atlassian.net/browse/TNL-9475 I need to add the requisite plugins, as well as a framework for the image upload modal.
- Loading branch information
1 parent
2f931b5
commit eef3034
Showing
5 changed files
with
110 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/editors/TextEditor/ImageUpload/Wizard/ImageUploadModal.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { ModalDialog, ActionRow, Button } from '@edx/paragon'; | ||
|
||
const ImageUploadModal = ({ isOpen, close }) => ( | ||
<ModalDialog | ||
title="My dialog" | ||
isOpen={isOpen} | ||
onClose={close} | ||
size="lg" | ||
variant="default" | ||
hasCloseButton | ||
isFullscreenOnMobile | ||
> | ||
<ModalDialog.Header> | ||
<ModalDialog.Title> | ||
Im a dialog box | ||
</ModalDialog.Title> | ||
</ModalDialog.Header> | ||
<ModalDialog.Body> | ||
<p> | ||
Im baby palo santo ugh celiac fashion axe. | ||
La croix lo-fi venmo whatever. | ||
Beard man braid migas single-origin coffee forage ramps. | ||
Tumeric messenger bag bicycle rights wayfarers, try-hard cronut blue bottle health goth. | ||
Sriracha tumblr cardigan, cloud bread succulents tumeric copper mug marfa semiotics woke next | ||
level organic roof party +1 try-hard. | ||
</p> | ||
</ModalDialog.Body> | ||
<ModalDialog.Footer> | ||
<ActionRow> | ||
<ModalDialog.CloseButton variant="tertiary"> | ||
Cancel | ||
</ModalDialog.CloseButton> | ||
<Button variant="primary"> | ||
A button | ||
</Button> | ||
</ActionRow> | ||
</ModalDialog.Footer> | ||
</ModalDialog> | ||
); | ||
|
||
ImageUploadModal.propTypes = { | ||
isOpen: PropTypes.bool, | ||
close: PropTypes.func, | ||
}; | ||
ImageUploadModal.defaultProps = { | ||
isOpen: false, | ||
close: () => {}, | ||
}; | ||
export default ImageUploadModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters