Opened 13 years ago

Last modified 9 years ago

#66 confirmed New Feature

HTML Tidy for XHTML processing

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

Description

It would be interesting to have the innerHTML generated by the browsers to be fixed with HTML Tidy in the server when switching to source view or before posting the data.

The process steps would be:

  • Show a "Processing..." message in the interface.
  • Retrieve the innerHTML (no changes to it). We know that the editor includes some custom elements and attributes there.
  • Send the HTML to the server using XMLHttpRequest (synchronous).
  • Process the HTML in the server using Tidy. "Tidy Processors" should be available on all supported server side languages.
  • Receive the processed HTML from the server and inject it in a DOMDocument.
  • Make the necessary changes in the DOMDocument, removing or changing browser specific or FCKeditor tags.
  • Hide the "Processing..." message and update the hidden field, or the source view, depending on the case.

Well, this is an initial idea than must be further developed in the future.

Change History (5)

comment:1 Changed 12 years ago by Alfonso Martínez de Lizarrondo

#603 has been marked as dup

comment:2 Changed 11 years ago by Artur Formella

Keywords: Confirmed added

comment:3 Changed 11 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.0

Maybe we'll not have this asynchronous operation in CKEditor, but we should have some clear integration with Tidy.

comment:4 Changed 11 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.0CKEditor 3.x

comment:5 Changed 9 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy