Skip to main content
13 events
when toggle format what by license comment
Mar 6, 2018 at 6:33 vote accept AXT
Feb 27, 2018 at 9:43 comment added Kunle Daramola @AXT, like I said previously, you need the correct XSLT. You need the XSLT that suites your requirement. I have edited my XSLT, but note that this XSLT will only make sure you do not have self closing <Iframe> If you have <iframe> that is not empty it will make them empty So think about your general requirement and add the XSLT that works for your situation.
Feb 27, 2018 at 9:35 history edited Kunle Daramola CC BY-SA 3.0
deleted 67 characters in body
Feb 26, 2018 at 3:20 comment added AXT @Headoo, I added my XSLT filtering, but instead of making it not self-close, it omitted all the iframe parameters.
Feb 22, 2018 at 17:15 comment added Quirijn The problem is that a self-closing tag is perfectly valid in XML. It is up to the XSLT processor to decide if it should render an element as self-closed or not. The work-around I use is to put a non-breaking space in the iframe. That forces the processor to render a separate closing element.
Feb 22, 2018 at 13:30 comment added Kunle Daramola @AXT, no just add it below it. if you remove it then you may have issues with every other tag in the RTF.
Feb 22, 2018 at 10:10 comment added AXT @Headoo, does it mean that I need to replace the codes in first block to the one specifically for iframe?
Feb 22, 2018 at 10:08 comment added AXT @Velmurugan, this self-closing is happened in the RTE, you have 3 tabs of design, source, and preview, and after you put your source (in this case the iframe tag), if you change to another tab and go back to source tab, it is formatted already as self-closed.
Feb 22, 2018 at 8:26 comment added Velmurugan @AXT: Is that self-closing happening on CME Richtext Editor after you saving the component or after the publishing on the presentation side?
Feb 22, 2018 at 8:19 comment added Kunle Daramola I have now edited the xslt to make it more specific to iframe, since you only want this for iframes, with the correct xslt you can get this done.
Feb 22, 2018 at 8:17 history edited Kunle Daramola CC BY-SA 3.0
Changed the code snippet to be more specific
Feb 22, 2018 at 5:57 comment added AXT I tried this, but the iframe tag is still self closed. Any idea?
Feb 20, 2018 at 13:00 history answered Kunle Daramola CC BY-SA 3.0