Remove unsupported argument from getWikitextFragment

This was removed upstream due to a regression.

We don't need it right now, but may need it in the future to
support editing, so replace with a TODO.

Change-Id: Ia73657080241319df309f3b6566ac0ac36a5909d
This commit is contained in:
Ed Sanders 2020-06-20 13:07:49 +01:00
parent 303b233ca1
commit 83968e4c00

View file

@ -415,19 +415,12 @@ CommentController.prototype.save = function ( parsoidData ) {
CommentController.prototype.switchToWikitext = function () {
var wikitextPromise,
oldWidget = this.replyWidget,
pageData = oldWidget.parsoidData.pageData,
target = oldWidget.replyBodyWidget.target,
previewDeferred = $.Deferred(),
commentController = this;
wikitextPromise = target.getWikitextFragment(
target.getSurface().getModel().getDocument(),
{
page: pageData.pageName,
baserevid: pageData.oldId,
etag: pageData.etag
}
);
// TODO: We may need to pass oldid/etag when editing is supported
wikitextPromise = target.getWikitextFragment( target.getSurface().getModel().getDocument() );
this.replyWidgetPromise = this.createReplyWidget( oldWidget.parsoidData, false );
return $.when( wikitextPromise, this.replyWidgetPromise ).then( function ( wikitext, replyWidget ) {