Re: [w3c/editing] Removal of browser built-in Undo stack functionality from contenteditable (#150)

A much better solution to removing native Undo/Redo from contenteditable would be endorsing what I just uncovered IE/Edge had for ages:
```
document.execCommand('ms-beginUndoUnit');
contentEditableElement.innerHTML = '';
document.execCommand('ms-endUndoUnit');
```
This way you can define particular manipulations as a singular Undo unit.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/150#issuecomment-458471483

Received on Tuesday, 29 January 2019 09:36:20 UTC