-
Notifications
You must be signed in to change notification settings - Fork 6
Description
- MW 1.39.6
- FlexForm REL1_39
- VE4All v0.6 (important not to use the REL1_39 branch because the API won't convert html to wikitext)
I'm testing the use of JSON schemas with instances that use a textarea with VisualEditor enabled. The text editor initialises fine but something goes wrong when the user submits the form. With mwidentifier=ajax, the spinner keeps spinning indefinitely and there is no error message. Without it, an alert seems to flash briefly before the page refreshes. Either way, the new content does not get submitted.
Part of the problem may be with these lines in /Modules/FlexForm.general.js.
var area = pform.find( 'textarea[name=\'' + instanceName + '\']' )[0]
$( area ).val( esc )
I don't know if anything changed in VE4All or VisualEditor (and don't really understand why it looks for the first such textarea in the entire form), but there is no matching textarea to be found. (There is at least one hidden textarea but that's the one equal to $( this )[0].$node[0], which stores the name value in data-name).
For an example with MW 1.35, see https://flexform.wikibase.nl/Gebruiker:944f869b-8467-464e-95c7-903362952755/Instances_with_VE