Ticket #215 (new defect)

Opened 2 years ago

Improve "Paste from Word"

Reported by: mr_lundis Owned by:
Priority: major Milestone: 1.x
Component: editor Version: trunk
Keywords: Cc:

Description

Improve the "Paste from Word" dialog to keep the structural formating of the pasted content (headlines, links, etc) while removing the MSO styles. The cleanup would also need to be compatible with other "formated pastes" from other office suites and applications.

This could be implemented by using a contentEditable div instead of a textarea in the dialogue, to capture the pasted html. Cleanup could be done by replacing all bold and italic text with <strong> and <em> respectively, after which all inline styling would be removed along with any style elements and conditional comments.

Note: See TracTickets for help on using tickets.