Content
Editing the CKEditor in
Added by Jillian Rowe over 3 years ago
Hello,
I'm trying to modify the editor and I'm having a lot of trouble. I can generate a custom build that uses the plugins I want, but they don't display in the preview, and custom classes and attributes are not displayed either in the preview setting or in the documents/show/:id page.
I've added the Font, PageBreak, and HTMLEmbed plugins. They are all built-in plugins.
In the editor in edit mode -
In preview mode -
Any help would be very appreciated! Eventually, I need to get able to add custom classes to the text, which I tried with :
this.editor.model.schema.extend('$text', {allowAttributes: ['customClass']});
but it also doesn't seem to really do anything. I can get things working the way I want in the editor, but they just don't work in the preview or in the document view.
Thanks again!