mendixlabs / CKEditorForMendix

A new WYSIWYG editor for Mendix that also has the ability to create "MicroFlow" links in your HTML output.
https://appstore.home.mendix.com/link/app/1715/Mendix/CKEditor-For-Mendix
Apache License 2.0
2 stars 21 forks source link

Edit window in iFrame and allow HTML, HEAD, STYLE and BODY tags #48

Open RenePhilipse opened 8 years ago

RenePhilipse commented 8 years ago

Hi Jelte,

I have 2 questions: -Is it possible to configure the edit part of CKeditor as an Iframe, instead of a DIV? This to prevent application styling applying into the editting (HTML) field in CKeditor. -Is it possible to allow HTML tags in the editor source code mode (HTML, Head, Style, Body)?

I read some documentation of CKeditor and both seem to be possible. However, I cannot get it to function in the mendix widget. Maybe you can help me on my way or in the future this can be made a setting in the modeler for this widget?

JelteMX commented 8 years ago

@RenePhilipse I have checked your feature request:

RenePhilipse commented 8 years ago

Hi @JelteMX , Thanks for your reply.

I already did some digging in the ckeditor documentation. As far as I understand, default behavior of the editor is in Iframe, so there is probably something that is overriding that. It looks like this plugin should be used: http://ckeditor.com/addon/wysiwygarea. The best would be if you can set this in the modeler, so you can choose per page which solution to use.

For editing complete HTML pages I also found some documentation. You can find it here: http://docs.ckeditor.com/#!/guide/dev_fullpage. I think it also should be the best if this can be set (on/off) from within the modeler.

I already tried to hack the above in the current java files, but my knowledge of java is very limited so I did not succeed unfortunately. Hopefully these documentation links can help you.

bartrikers commented 5 years ago

Any update on this? @JelteMX

I'm having the same issue. the problem seems to be the 'divarea' plugin, if I disable this in the widet's js file, ,the CKEditor seems to be rendering an iframe, although I haven't been able to get it working without it...