mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
MWExtensionWindow: Always send a string to setValueAndWhitespace
Bug: T177180 Change-Id: I3a32e1b22e82bc0c182d26a952e7592aafd4b5e4
This commit is contained in:
parent
852e1ababe
commit
ddc056a40a
|
@ -83,7 +83,7 @@ ve.ui.MWExtensionWindow.prototype.getSetupProcess = function ( data, process ) {
|
|||
if ( this.selectedNode ) {
|
||||
mwData = this.selectedNode.getAttribute( 'mw' );
|
||||
// mwData.body can be null in <selfclosing/> extensions
|
||||
this.input.setValueAndWhitespace( mwData.body && mwData.body.extsrc );
|
||||
this.input.setValueAndWhitespace( ( mwData.body && mwData.body.extsrc ) || '' );
|
||||
this.originalMwData = mwData;
|
||||
} else {
|
||||
if ( !this.constructor.static.modelClasses[ 0 ].static.isContent ) {
|
||||
|
|
Loading…
Reference in a new issue