Opened 12 years ago

Last modified 8 years ago

#11110 closed Bug

Image2: iframes/flashes are converted into image2 widgets when pasted — at Initial Version

Reported by: Marek Lewandowski Owned by:
Priority: Normal Milestone: CKEditor 4.3
Component: General Version: 4.3
Keywords: Cc:

Description

Image2: iframes/flashes are converted into image2 widgets when pasted

since: 4.3 until major

It seems that currently enabling image2 plugin will convert iframes/flashes into its widget.

  1. open image2 sample (/samples/plugins/image2/image2.html)
  2. switch to source mode
  3. input following code
    <p>n t<iframe frameborder="0" scrolling="no" src="www.wikipedia.org"></iframe>e d</p>
    
  4. switch back to wysiwyg mode
  5. ctrl+a (select all)
  6. ctrl+c (copy)
  7. move cursor at the end of content
  8. ctrl+p (paste)

Expected result:
Pasted content should contain iframe. Produced source code: {{{ <p>n t<iframe frameborder="0" scrolling="no" src="www.wikipedia.org"></iframe>e dn t<iframe frameborder="0" scrolling="no" src="www.wikipedia.org"></iframe>e d</p> }}}

Current result:
Pasted content contain image2 instad iframe. Code with image: {{{ <p>n t<iframe frameborder="0" scrolling="no" src="www.wikipedia.org"></iframe>e dn t<img alt="IFrame" src="http://presets.ckeditor.dev/4.3/full-all/ckeditor/plugins/fakeobjects/images/spacer.gif?t=DA89" title="IFrame" />e d</p> }}}

additional info:

  1. issue does not occur for other widget-based plugins like mathjax, placeholder
  2. issue seems to be cross browser

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy