When I go to an RTE and put it into the HTML mode and insert an iframe, it doesn't seem to work. It looks like I doidn't paste any content into the HTML. I get ans error message like that when I close the "source edit" to save. I get an error message stating "please fill out this field" evethough I see the iframe content in the source editor...
Anybody tried inserting iframes in the RTE?
Solved! Go to Solution.
Views
Replies
Total Likes
RTE source validator will remove the iframe with source(src). Use Text Area if you are using RTE just for iframe.
-AG
Hi @HenriMM
As @Asutosh_Jena_ mentioned you can use sourceedit option to insert iframe. But please also check WhitespaceProcessor.js, This removes some tags from RTE (It will happen when you switch back from source edit mode to normal) and XSS protection Framework (Will get called when you submit the dialog).
Thanks
Dipti
Thanks! As a matter of fact I used the source edit....but when I swiched back to normal, it erased the iframe. That happened also when embedding Twitter links in the RTE. Will share the whitespaceprocessor.js route with the team...
RTE source validator will remove the iframe with source(src). Use Text Area if you are using RTE just for iframe.
-AG
@Anudeep_Garnepudi Good to see you back after a while. AEM Community missed your presence. Keep the momentum going. Looking forward to see you more now :).
Views
Likes
Replies
Views
Like
Replies