Page MenuHomePhabricator

In Chrome and Opera, can't continually drag and drop text content in old WikiEditors under syntax highlighting mode
Open, Needs TriagePublic

Description

Mostly, the syntax highlighting mode is fine in a few or several (if not most) non-Microsoft browsers.

One issue with using the mode in Chrome and/or Opera is dragging and dropping a content while editing an article or a page. When I double-click on either one word, line, or paragraph, and I drag it to another place, the dragged text content is no longer highlighted. This means that I cannot continually drag and drop a content from one place to another. Therefore, I have to redo the dragging and dropping every time this happens repeatedly. It occurs at 2003, 2006, and 2010 WikiEditors while using the syntax highlighting mode.

On the contrary, 2017 WikiEditor has no issues with dragging and dropping while running the feature; the dragged content stays highlighted, so I can continue dragging a content. Furthermore, In Firefox, continuing the dragging-and-dropping action works all right in all WikiEditors.

Nonetheless, while in this mode in a non-Microsoft browser, an action cannot be undone because "Undo" either is not working or is unavailable while in this mode. (now becoming a separate issue)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Which operating system? I tried this in Chrome and Opera on MacOS High Sierra, 2010 editor, and I was able to drag/drop and it retained syntax highlighting, and also undo works.

I don't actually know how to get to the older wikitext editors :/

Microsoft Windows 7.

Almost forgot... You just go to your Preferences settings and then disable both old and new Toolbars. If you disable just the Enhanced Toolbar, you'd be switched back to the 2006 WikiEditor with the old toolbar. If you un-check both "Toolbar" options, you will be switched back to 2003 WikiEditor.

Almost forgot... You just go to your Preferences settings and then disable both old and new Toolbars. If you disable just the Enhanced Toolbar, you'd be switched back to the 2006 WikiEditor with the old toolbar. If you un-check both "Toolbar" options, you will be switched back to 2003 WikiEditor.

That's what I thought. I tried those out too, and all works fine. I don't have a Windows 7 machine but I can try Windows 10 soon.

The issue with Undo, by the way, I assume is separate. I haven't heard any reports of that not working.

在T190897#4086981中,@gh87写道:

Microsoft Windows 7.

With same OS and Chrome 67.0.3371.0 it looks good to me, have you clicked some extra keys on keyboard (e.g. one of your previous bug is probably because of your F12 clicking)?

在T190897#4086981中,@gh87写道:

Microsoft Windows 7.

With same OS and Chrome 67.0.3371.0 it looks good to me, have you clicked some extra keys on keyboard (e.g. one of your previous bug is probably because of your F12 clicking)?

My Chrome is 65.0.3325.181, a stable release. I wasn't sure how yours is v67, while mine is v65. But then I read this blog. I realize that the v67 is a version used in Dev channel and a Canary channel.

Honestly, I seldom use the developer tools because I don't have developer skills.

I didn't realize that the 2017 WikiEditor has its own "undo" and "redo" buttons:

undo redo buttons 2017 WikiEditor.PNG (48×141 px, 1 KB)

Oh wait... The undo and redo buttons appear at only the 2017 WikiEditor, not older ones.

Oh wait... The undo and redo buttons appear at only the 2017 WikiEditor, not older ones.

Your browser or operating system should still offer some form of undo/redo, either via a menu item (usually Edit > Undo), or keystroke: Ctrl+Z (Cmd+Z on Mac) for Undo and Shift-Ctrl+Z (Shift+Cmd+Z on Mac) for Redo.

Oh wait... The undo and redo buttons appear at only the 2017 WikiEditor, not older ones.

Your browser or operating system should still offer some form of undo/redo, either via a menu item (usually Edit > Undo), or keystroke: Ctrl+Z (Cmd+Z on Mac) for Undo and Shift-Ctrl+Z (Shift+Cmd+Z on Mac) for Redo.

I right-clicked (i.e. went to the context menu) on all browsers, especially Firefox. However, the Undo/Redo actions are not enabled; the CodeMirror mode is affecting browsers' undo and redo options when using old WikiEditors. When I turned off the CodeMirror mode, the undo/redo options become available again.

I thought about creating a separate task about the undo/redo options being affected by the CodeMirror.

T169136 is about the visual editor. This task is about the 2010 wikitext editor. There is no shared code between them, so the tasks cannot depend on each other.