Ticket #66 (new New Feature)

Opened 3 years ago

Last modified 12 months ago

HTML Tidy for XHTML processing

Reported by: FredCK Owned by:
Priority: Normal Milestone: CKEditor 3.x
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 3 years ago by alfonsoml

#603 has been marked as dup

Changed 18 months ago by arczi

  • keywords Confirmed added

Changed 18 months 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.

Changed 12 months ago by fredck

  • milestone changed from CKEditor 3.0 to CKEditor 3.x
Note: See TracTickets for help on using tickets.