Page MenuHomePhabricator

editor=visualeditor does not work
Open, Needs TriagePublic

Description

Used versions:
MW: 1.34.1
VisualEditor: 0.1.1 (74116a7)
VEForAll: 0.2 (2b2bdf1)
PageForms: 4.8 (c20df12)

In a very simple form with a field {{{field|Test|input type=textarea|editor=visualeditor}}} the VisualEditor widget does not work for the textarea field. It just shows a normal text area with a big gray bar at the side, see the attached image:

VE_PageForms.png (110×823 px, 2 KB)

Is this a config problem on my side or a bug in this extension or VEForAll? VisualEditor itself works for normal page edits.

Event Timeline

@jan - could you look in the "inspect" console of your browser, and see if any JavaScript errors appear?

There are just some warnings:

JQMIGRATE: Migrate is installed with logging active, version 3.0.1 load.php:201:217
This page is using the deprecated ResourceLoader module "jquery.tabIndex". load.php:1426:1044
This page is using the deprecated ResourceLoader module "jquery.ui".
Please use OOUI instead. load.php:1431:243
JQMIGRATE: jQuery.fn.delegate() is deprecated load.php:201:792
This page is using the deprecated ResourceLoader module "jquery.ui.position".
Please use the main `jquery.ui` module, not this alias. load.php:1720:448
This page is using the deprecated ResourceLoader module "jquery.ui.sortable".
Please use the main `jquery.ui` module, not this alias. load.php:1720:684
This page is using the deprecated ResourceLoader module "jquery.ui.widget".
Please use the main `jquery.ui` module, not this alias. load.php:1720:918
This page is using the deprecated ResourceLoader module "jquery.ui.autocomplete".
Please use the main `jquery.ui` module, not this alias. load.php:1720:97
JQMIGRATE: jQuery.unique is deprecated; use jQuery.uniqueSort load.php:201:792

Those warnings are not related to this. Is this happening on a public wiki? If not, could you paste the full form definition somewhere - like pastebin, or here?

Okay, the fact that this is a public wiki is very helpful. It looks like VisualEditor is not enabled - at least, not when the user is logged-out. Adding the following line to LocalSettings.php, below the inclusion of VE, might help:

$wgDefaultUserOptions['visualeditor-enable'] = 1;

Thank you :) This is the solution of my problem. I have just tested the usage of VisualEditor as logged-in user, so I did not think about this option. Could you maybe include a hint about this in the documentation for wikis where anonymous edits are normally disable?