mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Use deep clone for empty convertFromSource
Bug: T153254 Change-Id: I0dc6be0d20020e3fb385c9d065f9395dbda5a6b6
This commit is contained in:
parent
ccbf20496b
commit
854256bb8e
|
@ -155,7 +155,7 @@ ve.dm.MWWikitextSurfaceFragment.prototype.convertFromSource = function ( source
|
|||
var parsePromise;
|
||||
if ( !source ) {
|
||||
parsePromise = $.Deferred().resolve(
|
||||
this.getDocument().shallowCloneFromRange( new ve.Range( 0 ) )
|
||||
this.getDocument().cloneFromRange( new ve.Range( 0 ) )
|
||||
).promise();
|
||||
} else {
|
||||
parsePromise = new mw.Api().post( {
|
||||
|
|
Loading…
Reference in a new issue