[CKEditor] Error in webblock Javascript

[CKEditor] Error in webblock Javascript

Forge Component
Published on 2016-10-12 by OutSystems Labs
12 votes
Published on 2016-10-12 by OutSystems Labs
Hi all,

We discovered an error in the block javascript. When you use Ajax Sumit and insert objects like an anchor or iframe, the saved data contains instead of  "<a name=......"  and "<iframe ...." something like "<img class="cke_iframe" data-cke-realelement="%3Ciframe%20src%3D%22http%3A...".

With a normal Submit the correct value was saved. To solve this we changed to following peace of script in the webblock javascript:


The editor.getData() function has to be used here because the body HTML contains the HTML as you see it within the CKEditor, so a flag for an anchor, an image that says "IFRAME" for an Iframe.

Maybe it is useful to make this change in the downloadable component.