Opened 15 years ago

Closed 15 years ago

#3003 closed Bug (fixed)

Parse HTML data on input

Reported by: Frederico Caldeira Knabben Owned by: Frederico Caldeira Knabben
Priority: Normal Milestone: CKEditor 3.0
Component: General Version:
Keywords: Confirmed Cc:

Description

The editor is currently taking the input HTML as is, doing lots of string processing (regexes mostly) and them loading it into the editing area.

There are occasions when we have buggy HTML being loaded though causing use problem. For example, it's not possible to remove the bold style for the "Test" word in the following case:

<strong>
<table>
	<tr>
		<td>Test</td>
	</tr>
</table>
</strong>

We should use the HTML parser to "fix" the HTML before loading. The parser should also be used on the paste dialogs, insertHtml (with optional parameter to avoid it), or any function that accepts data from the outside.

Also, by using the "parsing filters", proposed with #3002, we could avoid all the regexes and special manipulation we have today, making it also easily customizable by plugins or external code.

Change History (3)

comment:1 Changed 15 years ago by Frederico Caldeira Knabben

Owner: set to Frederico Caldeira Knabben

comment:2 Changed 15 years ago by Frederico Caldeira Knabben

Status: newassigned

This feature is being introduced by the patch proposed at #3002.

comment:3 Changed 15 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: assignedclosed

Fixed with [3172].

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