Opened 13 years ago

Last modified 13 years ago

#6294 confirmed Bug

insertHtml: support for custom (invalid) HTML tags

Reported by: Wiktor Walc Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Discussion Cc:


There might be a situation, when one wants to use a custom tag, for example to process it on the server side later.

There is a problem with handling custom tags when inserting the content into the editor.

When checking the _samples/api.html sample and trying to paste the following content into the blank wysiwyg area with the "Insert HTML" button:


the result is as follows (tested in rev 5872):

  • IE 6: dynamic tag is lost: <p></p>
  • IE 7: dynamic tag is lost: <p></p>
  • IE 8: dynamic tag is lost: <p></p> (the result in FCKEditor 2.6.6 is different: <p><dynamic></dynamic></p>)
  • FF 3.6.9: dynamic tag is lost: <p></p>
  • Safari 5.0.2: dynamic tag is pasted correctly <p><dynamic></dynamic></p>

When switching from the source mode to wysiwyg mode and back with the following HTML:


the result is correct in all cases:

  • IE6: <p><dynamic></dynamic></p>
  • IE7: <p><dynamic></dynamic></p>
  • IE8: <p><dynamic></dynamic></p>
  • FF 3.6.9: <p><dynamic></dynamic></p>
  • Safari 5.0.2: <p><dynamic></dynamic></p>

Change History (2)

comment:1 Changed 13 years ago by Wiktor Walc

Keywords: Discussion added

comment:2 Changed 13 years ago by Jakub Ś

Status: newconfirmed
Version: 3.43.0

The below code:


If pasted in IE9, FF (3.6-5), Opera, Works

If pasted in IE6-8, custom tag is lost

If pasted in Webkit in empty editor or new empty paragraph, Works.

If pasted in Webkit inside paragraph with text (behind text, in the middle of text), custom tag is lost

Issues with Webkit and IE has been reproducible from CKE 3.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