Hi,
I am pasting a sample html using editor.Pastehtml method in sitecore 8.1 Rich text editor and it removes iframe tags after pasting. It works in few scenarios like
1. when the editor is empty.
2. When we paste at the end of the entire html.
3. It works when there is one frame tag, but when there are two it removes both and pastes the left out.
Below is the sample html that i am trying to paste to the editor.
"<div class="root"><p class="article-exhibit__header iframe-header_57aa38e436cf474fa4eaeaa77c7fb05d">header</p> <p class="article-exhibit__title iframe-title_57aa38e436cf474fa4eaeaa77c7fb05d">title</p> <div class="iframe-component"> <div class="iframe-component__desktop ewf-desktop-iframe_57aa38e436cf474fa4eaeaa77c7fb05d" data-mediaid="57aa38e436cf474fa4eaeaa77c7fb05d" data-embed-link="enabled"> <iframe width="560" height="315" src="https://www.youtube.com/embed/x56ipAMMmLA" frameborder="0" class="ewf-desktop-iframe_57aa38e436cf474fa4eaeaa77c7fb05d"></iframe> </div> <div class="iframe-component__mobile ewf-mobile-iframe_57aa38e436cf474fa4eaeaa77c7fb05d" data-embed-link="enabled"> <iframe width="560" height="315" src="https://www.youtube.com/embed/x56ipAMMmLA" frameborder="0" class="ewf-mobile-iframe_57aa38e436cf474fa4eaeaa77c7fb05d"></iframe> </div> </div> <p class="article-exhibit__caption iframe-caption_57aa38e436cf474fa4eaeaa77c7fb05d">caption</p> <p class="article-exhibit__source iframe-source_57aa38e436cf474fa4eaeaa77c7fb05d">source</p> </div>"
Can anyone help me with this? Please let me know if you need any other information.