Opened 7 years ago

Last modified 6 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:

Description

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:

<dynamic>http://www.google.com</dynamic>

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

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

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

<p><dynamic>http://www.google.com</dynamic></p>

the result is correct in all cases:

  • IE6: <p><dynamic>http://www.google.com</dynamic></p>
  • IE7: <p><dynamic>http://www.google.com</dynamic></p>
  • IE8: <p><dynamic>http://www.google.com</dynamic></p>
  • FF 3.6.9: <p><dynamic>http://www.google.com</dynamic></p>
  • Safari 5.0.2: <p><dynamic>http://www.google.com</dynamic></p>

Change History (2)

comment:1 Changed 7 years ago by Wiktor Walc

Keywords: Discussion added

comment:2 Changed 6 years ago by Jakub Ś

Status: newconfirmed
Version: 3.43.0

The below code:

<dynamic>http://www.google.com</dynamic>

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 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy