Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: add support for fonts in editor

thecodrr7a1ef90d0011
diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.js
index 874685c2f..e927eb386 100644
--- a/apps/web/src/components/editor/tinymce.js
+++ b/apps/web/src/components/editor/tinymce.js
@@ -206,7 +206,9 @@ function TinyMCE(props) {
inline_boundaries_selector: "a[href]",
toolbar: simple
? false
- : `bold italic underline strikethrough inlinecode | blockquote codeblock | fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent subscript superscript | numlist bullist checklist | forecolor backcolor removeformat | hr | image attachment media link table | ltr rtl | searchreplace`,
+ : `bold italic underline strikethrough inlinecode | fontselect | blockquote codeblock | fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent subscript superscript | numlist bullist checklist | forecolor backcolor removeformat | hr | image attachment media link table | ltr rtl | searchreplace`,
+ font_formats:
+ "Serif=serif; Classic=courier new; Monospace=courier; System font=Open Sans",
quickbars_selection_toolbar: false,
mobile: {
toolbar_mode: "scrolling",