[CKEditor] Error in webblock Javascript

[CKEditor] Error in webblock Javascript

  
Forge Component
(11)
Published on 12 Oct by OutSystems Labs
11 votes
Published on 12 Oct 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:

to



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.

Brian