Skip to content

Commit

Permalink
Merge branch 'feature/stricter-tinymce' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tnagorra committed Oct 7, 2024
2 parents 1255f78 + aea512d commit 7072d22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-grapes-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"go-web-app": patch
---

Prevent users from pasting images into rich text field
1 change: 1 addition & 0 deletions app/src/components/RichTextArea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type RawEditorOptions = NonNullable<IAllProps['init']>;
const editorOptions: Omit<RawEditorOptions, 'selector' | 'target'> = {
menubar: false, // https://www.tiny.cloud/docs/advanced/available-toolbar-buttons
statusbar: false,
paste_data_images: false,
plugins: ['advlist autolink code help link lists preview'],
toolbar: 'formatselect | bold italic superscript link | '
+ 'alignleft aligncenter alignright alignjustify | '
Expand Down

0 comments on commit 7072d22

Please sign in to comment.