mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Add class ve-ce-imageNode to all image nodes, also comment out mousedown event handler
Change-Id: I7565d8822bbe0547e731df1859cdde4ac78de6f2
This commit is contained in:
parent
d9bd47d8a6
commit
6017050b3f
|
@ -10,14 +10,19 @@ ve.ce.ImageNode = function( model ) {
|
|||
// Inheritance
|
||||
ve.ce.LeafNode.call( this, 'image', model, $( '<img>' ) );
|
||||
|
||||
// DOM Changes
|
||||
this.$.addClass( 've-ce-imageNode' );
|
||||
|
||||
// Properties
|
||||
this.currentSource = null;
|
||||
|
||||
// Events
|
||||
this.model.addListenerMethod( this, 'update', 'onUpdate' );
|
||||
/*
|
||||
this.$.on('mousedown', function() {
|
||||
return false;
|
||||
});
|
||||
*/
|
||||
|
||||
// Intialization
|
||||
this.onUpdate();
|
||||
|
|
Loading…
Reference in a new issue