Skip to content

Commit 4cbbf35

Browse files
author
Fatimah
committed
editor: added plugins and formatting options
1 parent 413322d commit 4cbbf35

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/lib/forms/RichEditor.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ import "tinymce/icons/default";
1313
import "tinymce/plugins/table";
1414
import "tinymce/plugins/autoresize";
1515
import "tinymce/plugins/codesample";
16+
import "tinymce/plugins/code";
1617
import "tinymce/plugins/link";
1718
import "tinymce/plugins/lists";
19+
import "tinymce/plugins/charmap";
20+
import "tinymce/plugins/fullscreen";
1821
import PropTypes from "prop-types";
1922

2023
export class RichEditor extends Component {
@@ -27,10 +30,20 @@ export class RichEditor extends Component {
2730
statusbar: false,
2831
min_height: minHeight,
2932
content_style: "body { font-size: 14px; }",
30-
plugins: ["codesample", "link", "lists", "table", "autoresize"],
33+
plugins: [
34+
"codesample",
35+
"link",
36+
"lists",
37+
"table",
38+
"autoresize",
39+
"code",
40+
"charmap",
41+
"fullscreen",
42+
],
3143
toolbar:
32-
"blocks | bold italic link codesample blockquote table | bullist numlist | outdent indent | undo redo",
44+
"blocks | bold italic subscript superscript strikethrough charmap | link codesample code blockquote table | bullist numlist | outdent indent | undo redo fullscreen",
3345
autoresize_bottom_margin: 20,
46+
3447
block_formats: "Paragraph=p; Header 1=h1; Header 2=h2; Header 3=h3",
3548
table_advtab: false,
3649
};

0 commit comments

Comments
 (0)