Skip to content

Commit 1f7204a

Browse files
samsharafrozenhelium
authored andcommitted
chore: update tinymce-react plugin and enable plugins including lists
1 parent 8c92429 commit 1f7204a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Hide Local unit contact details on the list view for logged in users in [#1485](https://github.com/ifRCGo/go-web-app/issues/1485)
6+
Update `tinymce-react` plugin to the latest version and enabled additional plugins, including support for lists in [#1481](https://github.com/ifRCGo/go-web-app/issues/1481)

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@ifrc-go/icons": "^2.0.1",
4141
"@ifrc-go/ui": "^1.2.1",
4242
"@sentry/react": "^7.81.1",
43-
"@tinymce/tinymce-react": "^4.3.0",
43+
"@tinymce/tinymce-react": "^5.1.1",
4444
"@togglecorp/fujs": "^2.1.1",
4545
"@togglecorp/re-map": "^0.3.0",
4646
"@togglecorp/toggle-form": "^2.0.4",

app/src/components/RichTextArea/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ const editorOptions: Omit<RawEditorOptions, 'selector' | 'target'> = {
1919
menubar: false, // https://www.tiny.cloud/docs/advanced/available-toolbar-buttons
2020
statusbar: false,
2121
paste_data_images: false,
22-
plugins: ['advlist autolink code help link lists preview'],
23-
toolbar: 'formatselect | bold italic superscript link | '
22+
plugins: 'advlist autolink code help link lists preview',
23+
toolbar: 'bold italic subscript superscript link | '
2424
+ 'alignleft aligncenter alignright alignjustify | '
25-
+ 'bullist numlist outdent indent | code removeformat preview | help',
26-
contextmenu: 'formats link',
25+
+ 'bullist numlist outdent indent | code removeformat preview fullscreen | help',
26+
contextmenu: 'link',
2727
// https://www.tiny.cloud/docs/configure/content-filtering/#invalid_styles
2828
invalid_styles: { '*': 'opacity' },
2929
};

0 commit comments

Comments
 (0)