Removing a text with the Delete key in a content editable zone and then trying to Undo with the right click menu doesn't work. [Step to reproduce] 1. Access https://quilljs.com/playground/ 2. Type some text inside 3. Select and remove with your keyboard (either Delete or Backspace) 4. Right click and select the Undo menu. [Expected behavior] The deleted text is back on the text area [Actual behavior] The Undo menu has no action. Refs https://github.com/mozilla/notes/issues/114
Did this use to work (ie is this a regression) ?
I have no idea, it appears to work fine in a textarea though. Refs: https://github.com/mozilla/notes/issues/114
FYI, UA spoofing seems to fix the problem on Windows10 Nightly56.0a1. i.e, seting general.useragent.override = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"
Great thanks, Alice-san. At least, since this doesn't work on Firefox 54, I don't think that this is recently regression. We might have to investigate this why this doesn't work.
Error in Browser console: IndexSizeError: Component returned failure code: 0x80530001 [nsIDocShell.doCommand] browser-child.js:401
This is site bug and there is no spec to turn off undo stack of browser. If delete selection (step. 3) is handled by browser, undo will work. But step. 3 is handled by site's JS unfortunately. So this operation isn't added into our undo stack.