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 13, 2024
1 parent c73567b commit a8b50b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions src/components/RichEditor/__snapshots__/RichEditor.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ exports[`RichEditor shows a rich text editor and an error 1`] = `
"extended_valid_elements": "span[lang|id] -span",
"menubar": false,
"plugins": "legacyoutput link lists language directionality",
"resize": "vertical",
"selector": "#rich-text-editor-test",
"statusbar": false,
"statusbar": true,
"toolbar": "undo redo | bold italic underline | bullist numlist | link | language | ltr rtl",
}
}
Expand Down Expand Up @@ -76,8 +77,9 @@ exports[`RichEditor shows a rich text editor with default text value 1`] = `
"extended_valid_elements": "span[lang|id] -span",
"menubar": false,
"plugins": "legacyoutput link lists language directionality",
"resize": "vertical",
"selector": "#rich-text-editor-test",
"statusbar": false,
"statusbar": true,
"toolbar": "undo redo | bold italic underline | bullist numlist | link | language | ltr rtl",
}
}
Expand Down Expand Up @@ -122,8 +124,9 @@ exports[`RichEditor shows a rich text editor with no default text value 1`] = `
"extended_valid_elements": "span[lang|id] -span",
"menubar": false,
"plugins": "legacyoutput link lists language directionality",
"resize": "vertical",
"selector": "#rich-text-editor-test",
"statusbar": false,
"statusbar": true,
"toolbar": "undo redo | bold italic underline | bullist numlist | link | language | ltr rtl",
}
}
Expand Down Expand Up @@ -170,8 +173,9 @@ exports[`RichEditor shows a rich text editor with no maxChars 1`] = `
"extended_valid_elements": "span[lang|id] -span",
"menubar": false,
"plugins": "legacyoutput link lists language directionality",
"resize": "vertical",
"selector": "#rich-text-editor-test",
"statusbar": false,
"statusbar": true,
"toolbar": "undo redo | bold italic underline | bullist numlist | link | language | ltr rtl",
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/RichEditor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ class RichEditor extends React.Component {
branding: false,
menubar: false,
plugins: 'legacyoutput link lists language directionality',
statusbar: false,
statusbar: true,
resize: 'vertical',
selector: `#${id}`,
toolbar: 'undo redo | bold italic underline | bullist numlist | link | language | ltr rtl',
entity_encoding: 'raw',
Expand Down

0 comments on commit a8b50b5

Please sign in to comment.