Page MenuHomePhabricator

WikiEditor: Browser undo (Ctrl+z) doesn't work on content added via the "advanced" options (make bullet, etc.)
Closed, DuplicatePublic


If one adds content via Advanced options then use Ctrl+z to undo it, this doesn't work.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:33 AM
bzimport added a project: WikiEditor.
bzimport set Reference to bz68043.

Do you mean the "advanced options" of the media dialog? If so, could you give steps to reproduce?

I've just tested setting the location, type, border and size and all four worked well, and undid correctly with Ctrl+Z.

Sorry, I chose the wrong component, it should have been Wikieditor under Mediawiki Extension.

Steps to reproduce, I have tested this on IE, Chrome and Firefox,/

Go to page > Select Edit Source > Use advanced options to add a bullet list or somethings else like gallery etc. > Press Ctrl + z to remove it and it doesn't works.

Please provide a specific page where to reproduce this so I don't have to search or guess. :) Complete and full steps to reproduce are generally welcome, see for more info.

Sorry for that, let me give a user page for reproduction.
For e.g.
Go to my user page

Select Edit Source in top right corner > Use advanced options in WikiEditor to add a bullet list or something else like gallery etc. > Press Ctrl + z to remove it and it doesn't works.

Some browser support dispatchEvent + TextEvent

var event = document.createEvent('TextEvent');
event.initTextEvent('textInput', true, true, null, text, 9, "en-US");
textarea[0].setSelectionRange(selection.start, selection.end);

But all in all, it seems that this is one of those areas that is still a bit botched up in the browser landscape.