Problem with Image2 CKEditor Plugin

Hi,

I have added enhanced image2 plugin to a rich text field. But when I try to add an image with caption and save the document, the image with caption disappears. Below is the config:

  • ckeditor.config.appended.json
    { toolbarGroups: [ { name: ‘colors’ },{ name: ‘font’ } ], plugins: “image2” }

  • ckeditor.config.overlayed.json
    { extraPlugins: ‘font,colorbutton,colordialog,wordcount,image2’}

FYI,I have added other styling plugins as well and they work fine.

Appreciate the inputs.

Thanks,
RK

Hi,

HTML in rich text fields gets cleaned server-side when a document is saved. The image2 plugin probably generates elements and/or attributes that are not whitelisted yet, so these will be removed.

Whitelisted elements and attributes can edited in the Console application below the node /hippo:configuration/hippo:modules/htmlprocessor/hippo:moduleconfig/richtext .

For more details, see https://www.onehippo.org/library/concepts/document-types/html-fields/html-cleaning.html#server-side.

hth,

Mathijs

That worked. Thanks Mathijs!