Skip to content

Commit

Permalink
chore: add autoresize plugin to adjust the height of tinymce editor
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Nov 12, 2024
1 parent c73567b commit 132b7fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/RichEditor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import 'tinymce/plugins/legacyoutput';
import 'tinymce/plugins/link';
import 'tinymce/plugins/lists';
import 'tinymce/plugins/directionality';
import 'tinymce/plugins/autoresize';
import 'tinymce/themes/silver/theme';
import '@edx/tinymce-language-selector';
import 'tinymce/skins/ui/oxide/skin.css';
Expand Down Expand Up @@ -89,7 +90,9 @@ class RichEditor extends React.Component {
init={{
branding: false,
menubar: false,
plugins: 'legacyoutput link lists language directionality',
plugins: 'legacyoutput link lists language directionality autoresize',
min_height: 200,
max_height: 400,
statusbar: false,
selector: `#${id}`,
toolbar: 'undo redo | bold italic underline | bullist numlist | link | language | ltr rtl',
Expand Down

0 comments on commit 132b7fe

Please sign in to comment.