Fix DataTransferHandlers when loading source editor directly (no etag)

Bug: T153268
Change-Id: I0b43fd651e26c3d74a5f29e8ed80e5dee28ac399
This commit is contained in:
Ed Sanders 2016-12-14 22:47:12 +00:00
parent 9c448dd827
commit 1b726dc9bc

View file

@ -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();