Now blurring in Wiki.editor_focused() for static divs as well (not just iframes).
This commit is contained in:
parent
f4511a8493
commit
725904ba49
|
@ -1019,19 +1019,21 @@ Wiki.prototype.update_link_with_suggestion = function ( editor, link, note ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Wiki.prototype.editor_focused = function ( editor, synchronous ) {
|
Wiki.prototype.editor_focused = function ( editor, synchronous ) {
|
||||||
if ( this.focused_editor && this.focused_editor != editor && this.focused_editor.iframe ) {
|
if ( this.focused_editor && this.focused_editor != editor ) {
|
||||||
this.clear_pulldowns();
|
|
||||||
this.focused_editor.blur();
|
this.focused_editor.blur();
|
||||||
|
this.clear_pulldowns();
|
||||||
|
|
||||||
// if the formerly focused editor is completely empty, then remove it as the user leaves it and switches to this editor
|
if ( this.focused_editor.iframe ) {
|
||||||
if ( this.focused_editor.id == this.blank_editor_id && this.focused_editor.empty() ) {
|
// if the formerly focused editor is completely empty, then remove it as the user leaves it and switches to this editor
|
||||||
signal( this, "note_removed", this.focused_editor.id );
|
if ( this.focused_editor.id == this.blank_editor_id && this.focused_editor.empty() ) {
|
||||||
this.focused_editor.shutdown();
|
signal( this, "note_removed", this.focused_editor.id );
|
||||||
this.decrement_total_notes_count();
|
this.focused_editor.shutdown();
|
||||||
this.display_empty_message();
|
this.decrement_total_notes_count();
|
||||||
} else {
|
this.display_empty_message();
|
||||||
// when switching editors, save the one being left
|
} else {
|
||||||
this.save_editor( null, null, null, synchronous );
|
// when switching editors, save the one being left
|
||||||
|
this.save_editor( null, null, null, synchronous );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user