mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Set contenteditable=false for Alien wrappers (both inline and block)
Change-Id: I5fd8fcfd0b6d98b525a75b3818cc77e3aca833c9
This commit is contained in:
parent
1e5e14c2c1
commit
e9230968fe
|
@ -12,27 +12,12 @@ ve.ce.AlienBlockNode = function( model ) {
|
|||
|
||||
// DOM Changes
|
||||
this.$.addClass( 've-ce-alienBlockNode' );
|
||||
this.$.attr( 'contenteditable', false );
|
||||
|
||||
// Events
|
||||
this.model.addListenerMethod( this, 'update', 'onUpdate' );
|
||||
|
||||
// Intialization
|
||||
var _this = this;
|
||||
|
||||
/* We might need some of those at some point */
|
||||
/*
|
||||
this.$.on( {
|
||||
'mousedown': function() {
|
||||
_this.$.css( '-webkit-user-select', 'none' );
|
||||
},
|
||||
'mouseup': function() {
|
||||
_this.$.css( '-webkit-user-select', '' );
|
||||
},
|
||||
} );
|
||||
|
||||
this.$.attr( 'contenteditable', false );
|
||||
*/
|
||||
|
||||
this.onUpdate();
|
||||
};
|
||||
|
||||
|
|
|
@ -12,27 +12,12 @@ ve.ce.AlienInlineNode = function( model ) {
|
|||
|
||||
// DOM Changes
|
||||
this.$.addClass( 've-ce-alienInlineNode' );
|
||||
this.$.attr( 'contenteditable', false );
|
||||
|
||||
// Events
|
||||
this.model.addListenerMethod( this, 'update', 'onUpdate' );
|
||||
|
||||
// Intialization
|
||||
var _this = this;
|
||||
|
||||
/* We might need some of those at some point */
|
||||
/*
|
||||
this.$.on( {
|
||||
'mousedown': function() {
|
||||
_this.$.css( '-webkit-user-select', 'none' );
|
||||
},
|
||||
'mouseup': function() {
|
||||
_this.$.css( '-webkit-user-select', '' );
|
||||
},
|
||||
} );
|
||||
|
||||
this.$.attr( 'contenteditable', false );
|
||||
*/
|
||||
|
||||
this.onUpdate();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue