Skip to content

Commit b5299e7

Browse files
committed
Deactivate/reactivate the surface when entering/leaving review mode
Bug: T389904 Change-Id: I9ab004802e6315a8137e17141dc1663b9b188d27
1 parent 3ca28e0 commit b5299e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ce/ve.ce.Surface.js

+3
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,9 @@ ve.ce.Surface.prototype.setReviewMode = function ( reviewMode, highlightNodes )
542542
this.$element.find( '.ve-ce-surface-reviewMode-highlightNode' )
543543
.removeClass( 've-ce-surface-reviewMode-highlightNode' );
544544
}
545+
if ( this.reviewMode ) {
546+
this.deactivate( false );
547+
}
545548
};
546549

547550
/**

0 commit comments

Comments
 (0)