mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "(bug 50113) Do not display captions for block images which are neither frame nor thumb"
This commit is contained in:
commit
1a8bb8c6ab
|
@ -71,7 +71,7 @@ ve.ce.MWBlockImageNode = function VeCeMWBlockImageNode( model, config ) {
|
|||
this.$resizable = this.$image;
|
||||
|
||||
// I smell a caption!
|
||||
if ( this.model.children.length === 1 ) {
|
||||
if ( type !== 'none' && this.model.children.length === 1 ) {
|
||||
captionModel = this.model.children[0];
|
||||
captionView = ve.ce.nodeFactory.create( captionModel.getType(), captionModel );
|
||||
captionModel.connect( this, { 'update': 'onModelUpdate' } );
|
||||
|
|
Loading…
Reference in a new issue