Strip RESTBase IDs when switching to VE

Bug: T253584
Depends-On: If5d15dd4e7e0d3704ca8d75c0a25c529b06f17fb
Change-Id: Ia310fcc873960d0d3c1b17410e33dc4f47c5c734
This commit is contained in:
Ed Sanders 2020-06-10 20:34:07 +01:00 committed by Esanders
parent ba295c81dd
commit d6d9aec3ee

View file

@ -484,6 +484,8 @@ CommentController.prototype.switchToVisual = function () {
if ( html ) { if ( html ) {
doc = replyWidget.replyBodyWidget.target.parseDocument( html ); doc = replyWidget.replyBodyWidget.target.parseDocument( html );
// Remove RESTBase IDs (T253584)
mw.libs.ve.stripRestbaseIds( doc );
bodyChildren = Array.prototype.slice.call( doc.body.childNodes ); bodyChildren = Array.prototype.slice.call( doc.body.childNodes );
// There may be multiple lists when some lines are template generated // There may be multiple lists when some lines are template generated
bodyChildren.forEach( function ( child ) { bodyChildren.forEach( function ( child ) {