We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a5217 commit 2982003Copy full SHA for 2982003
1 file changed
src/editors/sharedComponents/TinyMceWidget/index.jsx
@@ -2,7 +2,6 @@ import React from 'react';
2
import PropTypes from 'prop-types';
3
import { Editor } from '@tinymce/tinymce-react';
4
import { getConfig } from '@edx/frontend-platform';
5
-import { useDispatch } from 'react-redux';
6
7
import 'tinymce';
8
import 'tinymce/themes/silver';
@@ -55,8 +54,6 @@ const TinyMceWidget = ({
55
54
const { imagesRef } = hooks.useImages({ images, editorContentHtml });
56
const imageSelection = hooks.selectedImage(null);
57
58
- const dispatch = useDispatch();
59
-
60
return (
61
<>
62
{enableImageUpload && (
@@ -93,7 +90,6 @@ const TinyMceWidget = ({
93
90
images: imagesRef,
94
91
editorContentHtml,
95
92
staticRootUrl,
96
- dispatch,
97
...imageSelection,
98
...editorConfig,
99
})
0 commit comments