fbreuer / qute-html5

Qute Text Editor - built with web technologies
http://www.inkcode.net/qute
GNU Affero General Public License v3.0
127 stars 6 forks source link

undo/redo #19

Open fbreuer opened 12 years ago

fbreuer commented 12 years ago

Currently, Qute relies on Chromeless' builtin handling of undo/redo in contentEditable paragraphs.

Naturally, this produces unexpected results as soon as paragraphs have been switched. In particular, changes made by the undo operation to the source code of paragraphs that are currently in display mode are invisible until the paragraph is switched again. Is there a way to hook into Chromeless' undo mechanism and trigger transformations of the source whener changes are made?

pkra commented 12 years ago

Ah, that explains it! Thx.