Cockpit-HQ / Cockpit

Cockpit Core - Content Platform
https://getcockpit.com
Other
388 stars 47 forks source link

How to extend WYSIWYG editor tinymce config #158

Closed Mikearaya closed 1 year ago

Mikearaya commented 1 year ago

I wanted to enable the toolbar and also font-changing how can i extend the default text editor appearance configuration https://www.tiny.cloud/docs-4x/configure/editor-appearance/

Mikearaya commented 1 year ago

Found the solution but it would be helpful if is included on the documentation page. but until then if anyone is curious this is a good starting point https://discourse.getcockpit.com/t/customize-wysiwyg/2466/2

aheinze commented 1 year ago

It is documented: https://getcockpit.com/documentation/core/concepts/fields#wysiwyg

Mikearaya commented 1 year ago

@aheinze Thank you, for the help, I really appreciate it.

I was wondering if it is possible to apply a custom option globally instead of per rich text editor usage. one area where this might be useful is on the layout page. the only workaround option I can think of is creating a custom layout component that uses a rich-text field with a custom configuration. however, that means I have to migrate all of the existing pages to use that custom rich-text layout component which is a lot.