etch icon indicating copy to clipboard operation
etch copied to clipboard

Feature idea : add a callback after a change

Open PierreLeresteux opened this issue 12 years ago • 3 comments

Hi, just an idea, after a "document.execCommand" or other text modification, you can call a function (empty in etch-core).

Why adding a callback after a modification ?

I need to store the model after a modifcation, so I override all the modification function (clearFormatting, toggleBold, toggleItalic ... ) just to add a callback method after the execCommand action. If in etch-core, you implement this callback, I have just this callback function to override.

PierreLeresteux avatar Sep 06 '12 08:09 PierreLeresteux

+1 :)

christianhager avatar Sep 10 '12 20:09 christianhager

+1

arjun-urs avatar Mar 14 '14 21:03 arjun-urs

I'll get this in on the next update. Probably by way of firing an event on the model.

joshontheweb avatar Mar 20 '14 04:03 joshontheweb