mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Don't render href as src in MWBlockImageNode
<a src="..."> isn't a thing Change-Id: Ia192331b88f17480f4285697e024bda25078968b
This commit is contained in:
parent
608b8d378d
commit
ec008a6464
|
@ -37,7 +37,7 @@ ve.ce.MWBlockImageNode = function VeCeMWBlockImageNode( model, config ) {
|
|||
|
||||
this.$a = this.$$( '<a>' )
|
||||
.addClass( 'image' )
|
||||
.attr( 'src', this.model.getAttribute( 'href' ) );
|
||||
.attr( 'href', this.model.getAttribute( 'href' ) );
|
||||
|
||||
this.$image = this.$$( '<img>' )
|
||||
.attr( 'src', this.model.getAttribute( 'src' ) )
|
||||
|
|
Loading…
Reference in a new issue