mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Use ve.ce.nodeFactory.createFromModel
Change-Id: I1a826c3c0985ef0d8ad0b669886e29aa021c90c1 Depends-On: I259face33154b795143c8820abdfb6b4a495f141
This commit is contained in:
parent
c2e16186a0
commit
d7d4eb3126
|
@ -207,7 +207,7 @@ ve.dm.MWTransclusionNode.static.toDomElements = function ( dataElement, doc, con
|
|||
} else if ( converter.isForPreview() ) {
|
||||
modelNode = ve.dm.nodeFactory.createFromElement( dataElement );
|
||||
modelNode.setDocument( converter.internalList.getDocument() );
|
||||
viewNode = ve.ce.nodeFactory.create( modelNode.getType(), modelNode );
|
||||
viewNode = ve.ce.nodeFactory.createFromModel( modelNode );
|
||||
if ( !viewNode.hasRendering() ) {
|
||||
viewNode.onSetup();
|
||||
viewNode.$element
|
||||
|
|
Loading…
Reference in a new issue