diff --git a/resources/js/common/wysiwyg-editor/index.js b/resources/js/common/wysiwyg-editor/index.js index d445bb6c..a7b79c0d 100644 --- a/resources/js/common/wysiwyg-editor/index.js +++ b/resources/js/common/wysiwyg-editor/index.js @@ -4,8 +4,6 @@ import { ContentState, convertFromHTML, convertToRaw, EditorState } from 'draft- import { Editor } from 'react-draft-wysiwyg' import draftToHtml from 'draftjs-to-html' -require('react-draft-wysiwyg/dist/react-draft-wysiwyg.css') - class WYSIWYG extends Component { static propTypes = { value: PropTypes.string.isRequired, diff --git a/resources/sass/app.scss b/resources/sass/app.scss index ecf00f2d..738b1ea8 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -1,6 +1,7 @@ // Bootstrap @import "../../node_modules/bootstrap/scss/bootstrap"; @import "../../node_modules/font-awesome/scss/font-awesome"; +@import "../../node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.css"; /* * Dashboard @@ -20,4 +21,4 @@ section { .show > .dropdown-menu { display: block; -} \ No newline at end of file +}