etch
etch copied to clipboard
Feature idea : add a callback after a change
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.
+1 :)
+1
I'll get this in on the next update. Probably by way of firing an event on the model.