CKE editor widget in Mendix appstore

2
Why does my CKE editor automatically add a paragraph element around any images inserted into my html? And even if i remove it manually it automatically set the paragraph again?
asked
2 answers
3

Because it's the default in CKEditor configuration.

Apparently setting the config property config.entermode to enter_br would fix this accoring to http://stackoverflow.com/questions/1977791/turn-off-enclosing-p-tags-in-ckeditor-3-0

However, the CKEditor documentation states that this setting is not recommended. http://docs.ckeditor.com/#!/api/CKEDITOR.config

Please file a feature here in order to have this as a configurable option: https://github.com/mendix/CKEditorForMendix/issues

answered
1
config.enterMode = CKEDITOR.ENTER_BR // pressing the ENTER KEY input <br/>
config.shiftEnterMode = CKEDITOR.ENTER_P; //pressing the SHIFT + ENTER KEYS input <p>
config.autoParagraph = false; // stops automatic insertion of <p> on focus

Adding these to the config.js file in the widget fixes the issue

answered