mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Fix DataTransferHandlers when loading source editor directly (no etag)
Bug: T153268 Change-Id: I0b43fd651e26c3d74a5f29e8ed80e5dee28ac399
This commit is contained in:
parent
9c448dd827
commit
1b726dc9bc
|
@ -51,7 +51,7 @@ ve.ui.MWWikitextDataTransferHandlerFactory.prototype.create = function () {
|
|||
resolve( dataOrDoc );
|
||||
} else {
|
||||
doc = dataOrDoc instanceof ve.dm.Document ? dataOrDoc : new ve.dm.Document( dataOrDoc );
|
||||
ve.init.target.getWikitextFragment( doc )
|
||||
ve.init.target.getWikitextFragment( doc, false )
|
||||
.done( resolve )
|
||||
.fail( function () {
|
||||
handler.abort();
|
||||
|
|
Loading…
Reference in a new issue