- From: Alex Inkin <notifications@github.com>
- Date: Tue, 29 Jan 2019 01:35:58 -0800
- To: w3c/editing <editing@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 29 January 2019 09:36:20 UTC
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