mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Strip RESTBase IDs when switching to VE
Bug: T253584 Depends-On: If5d15dd4e7e0d3704ca8d75c0a25c529b06f17fb Change-Id: Ia310fcc873960d0d3c1b17410e33dc4f47c5c734
This commit is contained in:
parent
ba295c81dd
commit
d6d9aec3ee
|
@ -484,6 +484,8 @@ CommentController.prototype.switchToVisual = function () {
|
|||
|
||||
if ( html ) {
|
||||
doc = replyWidget.replyBodyWidget.target.parseDocument( html );
|
||||
// Remove RESTBase IDs (T253584)
|
||||
mw.libs.ve.stripRestbaseIds( doc );
|
||||
bodyChildren = Array.prototype.slice.call( doc.body.childNodes );
|
||||
// There may be multiple lists when some lines are template generated
|
||||
bodyChildren.forEach( function ( child ) {
|
||||
|
|
Loading…
Reference in a new issue