Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RenePhilipse opened this issue Jul 5, 2016 · 3 comments
Open
Assignees

Comments

@RenePhilipse
Copy link

RenePhilipse commented Jul 5, 2016

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 JelteMX self-assigned this Jul 6, 2016
@RenePhilipse RenePhilipse changed the title Edit windows in iFrame and allow HTML, HEAD, STYLE and BODY tags Edit window in iFrame and allow HTML, HEAD, STYLE and BODY tags Jul 6, 2016
@JelteMX
Copy link
Contributor

JelteMX commented Jul 12, 2016

@RenePhilipse I have checked your feature request:

  • I think it should be possible to use an iframe instead of a div, as I have read somewhere. Not sure when I can implement this (huge workload at the moment). I'll see if I can come up with a possible workable version early next week
  • Not sure whether or not these HTML tags will work. I have already whitelisted a few tags, so it should be possible to add these, but I am not sure whether or not that's going to work (even with said iframe)

@RenePhilipse
Copy link
Author

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
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants