# Problem with Image2 CKEditor Plugin

**URL:** <https://community.bloomreach.com/t/problem-with-image2-ckeditor-plugin/248>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [July 31, 2018, 2:54pm UTC](https://community.bloomreach.com/t/problem-with-image2-ckeditor-plugin/248 "2018-07-31T14:54:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakesh](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rakesh](https://community.bloomreach.com/u/rakesh)\
**Post date:** [July 31, 2018, 2:54pm UTC](https://community.bloomreach.com/t/problem-with-image2-ckeditor-plugin/248/1 "2018-07-31T14:54:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mathijs](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mathijs/32/26_2.png) [@mathijs](https://community.bloomreach.com/u/mathijs)\
**Post date:** [August 1, 2018, 7:08am UTC](https://community.bloomreach.com/t/problem-with-image2-ckeditor-plugin/248/2 "2018-08-01T07:08:29Z")

</div>

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](https://www.onehippo.org/library/concepts/document-types/html-fields/html-cleaning.html#server-side).

hth,

Mathijs

---

<div class="post-metadata">

**Author:** ![rakesh](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rakesh](https://community.bloomreach.com/u/rakesh)\
**Post date:** [August 1, 2018, 4:07pm UTC](https://community.bloomreach.com/t/problem-with-image2-ckeditor-plugin/248/3 "2018-08-01T16:07:22Z")

</div>

That worked. Thanks Mathijs!
