|
@@ -419,10 +419,6 @@ export default class Renderer {
|
|
|
* @private
|
|
* @private
|
|
|
*/
|
|
*/
|
|
|
_updateSelection() {
|
|
_updateSelection() {
|
|
|
- if ( !this.isFocused ) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
// If there is no selection - remove it from DOM elements that belongs to the editor.
|
|
// If there is no selection - remove it from DOM elements that belongs to the editor.
|
|
|
if ( this.selection.rangeCount === 0 ) {
|
|
if ( this.selection.rangeCount === 0 ) {
|
|
|
this._removeDomSelction();
|
|
this._removeDomSelction();
|
|
@@ -430,6 +426,10 @@ export default class Renderer {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if ( !this.isFocused ) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const selectedEditable = this.selection.getEditableElement();
|
|
const selectedEditable = this.selection.getEditableElement();
|
|
|
const domRoot = this.domConverter.getCorrespondingDomElement( selectedEditable );
|
|
const domRoot = this.domConverter.getCorrespondingDomElement( selectedEditable );
|
|
|
|
|
|