Skip to content

Commit

Permalink
editor: added plugins and formatting options
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatimah committed Apr 22, 2024
1 parent 3d07ef8 commit c1f6358
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/lib/forms/RichEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import "tinymce/plugins/autoresize";
import "tinymce/plugins/codesample";
import "tinymce/plugins/link";
import "tinymce/plugins/lists";
import "tinymce/plugins/code";
import "tinymce/plugins/charmap";
import "tinymce/plugins/fullscreen";
import PropTypes from "prop-types";

export class RichEditor extends Component {
Expand All @@ -27,10 +30,18 @@ export class RichEditor extends Component {
statusbar: false,
min_height: minHeight,
content_style: "body { font-size: 14px; }",
plugins: ["codesample", "link", "lists", "table", "autoresize"],
contextmenu: false,
plugins: [
"codesample",
"link",
"lists",
"table",
"autoresize",
"code",
"charmap",
"fullscreen",
],
toolbar:
"blocks | bold italic link codesample blockquote table | bullist numlist | outdent indent | undo redo",
"blocks | bold italic subscript superscript charmap | link codesample code blockquote table | bullist numlist | outdent indent | undo redo fullscreen",
autoresize_bottom_margin: 20,
block_formats: "Paragraph=p; Header 1=h1; Header 2=h2; Header 3=h3",
table_advtab: false,
Expand Down

0 comments on commit c1f6358

Please sign in to comment.