mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +00:00
Remove paragraph unwrapping, moved to parent class
Depends on Ib04234f740 in VisualEditor. Change-Id: I542f9e73f5fe3713a91ca5794d175936d873038d
This commit is contained in:
parent
be96c3d5e0
commit
cc1009dc0d
|
@ -43,16 +43,9 @@ ve.ce.MWMathNode.prototype.onSetup = function () {
|
|||
this.$element.addClass( 've-ce-mwMathNode' );
|
||||
};
|
||||
|
||||
/** */
|
||||
ve.ce.MWMathNode.prototype.onParseSuccess = function ( deferred, response ) {
|
||||
var data = response.visualeditor, contentNodes = this.$( data.content ).get();
|
||||
if ( contentNodes[0] && contentNodes[0].childNodes ) {
|
||||
contentNodes = Array.prototype.slice.apply( contentNodes[0].childNodes );
|
||||
}
|
||||
deferred.resolve( contentNodes );
|
||||
};
|
||||
|
||||
/** */
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.ce.MWMathNode.prototype.afterRender = function () {
|
||||
var $img,
|
||||
node = this;
|
||||
|
|
Loading…
Reference in a new issue