Page MenuHomePhabricator

Impossible to edit a specific section when switching from VisualEditor to "legacy mode" (due to reference to QuickEdit gadget in vector.js?)
Closed, InvalidPublic

Description

Author: l736ewiki

Description:
I'm an user on it.wiki, where VisualEditor is now enabled by default on the whole ns0.

I was trying to modify a long article, on a specific section, and needed to introduce wikicode (namely {{...}} for a paragraph replaced by an empty section).

VisualEditor forced me to switch to legacy mode, but whenever I try to edit the specific section, through the local "Edit" command at section level, the legacy editor always opens in the basic editor the whole article and not just the selected section.

This is heavily annoying when dealing with very long articles, with plenty of sections.


Version: unspecified
Severity: major
OS: Mac OS X 10.8
Platform: Macintosh

Details

Reference
bz51976

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:09 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz51976.

I can't reproduce this on it.wiki, using vector skin and Firefox/Linux.

Does this happen on every article for you? Which skin are you using?

l736ewiki wrote:

I'm using vector. The issue appeared both on Safari/OS X (Mountain Lion, 10.8) and on Firefox/Windows XP Pro.

However, I was apparently able to overcome the issue. I read in the FAQ that it's recommended to disable the QuickEdit extension to avoid undesired effects with VE, so I checked in my preference pane that this extension was actually disabled (and it was).

However, in my vector.js fiel, inside the "toLoad" variable, there was a reference to QuickEdit gadget (qed). Looks like the presence of that string inside vector.js actually caused the extension to be loaded anyway. Removing that string from the vector.js and refreshing the browser's cache overcame the issue. Now I'm able to open VE directly over single individual sections.

So the results are:

  • it's not enough to verify in the preference pane that the QuickEdit extension is disabled
  • any reference to QuickEdit shall be removed also from the local vector.js (or monobook.js, I assume then)