Ticket #66 (new New Feature)

Opened 22 months ago

Last modified 7 weeks ago

HTML Tidy for XHTML processing

Reported by: FredCK Owned by:
Priority: Normal Milestone: CKEditor 3.0
Component: General Version:
Keywords: Confirmed 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

Changed 17 months ago by alfonsoml

#603 has been marked as dup

Changed 7 weeks ago by arczi

  • keywords Confirmed added

Changed 7 weeks ago by fredck

  • milestone set to CKEditor 3.0

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

Note: See TracTickets for help on using tickets.