mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Merge "Prevent adding content to aliens in IE"
This commit is contained in:
commit
a5dcf7cd1b
|
@ -19,7 +19,10 @@ ve.ce.AlienNode = function VeCeAlienNode( model ) {
|
|||
|
||||
// DOM Changes
|
||||
this.$.addClass( 've-ce-alienNode' );
|
||||
this.$.attr( 'contenteditable', false );
|
||||
|
||||
// ce="false" inside of ce="true" does not prevent editing in IE
|
||||
// Strangely enough, ce="true" inside of ce="true" does.
|
||||
this.$.attr( 'contenteditable', !!$.browser.msie );
|
||||
|
||||
// Events
|
||||
this.model.addListenerMethod( this, 'update', 'onUpdate' );
|
||||
|
|
|
@ -182,6 +182,7 @@ ve.ce.Surface.prototype.documentOnFocus = function () {
|
|||
ve.ce.Surface.prototype.documentOnBlur = function () {
|
||||
this.$document.off( '.ve-ce-Surface' );
|
||||
this.surfaceObserver.stop( true );
|
||||
this.dragging = false;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue