Now blurring in Wiki.editor_focused() for static divs as well (not just iframes).
This commit is contained in:
parent
f4511a8493
commit
725904ba49
|
@ -1019,10 +1019,11 @@ Wiki.prototype.update_link_with_suggestion = function ( editor, link, note ) {
|
|||
}
|
||||
|
||||
Wiki.prototype.editor_focused = function ( editor, synchronous ) {
|
||||
if ( this.focused_editor && this.focused_editor != editor && this.focused_editor.iframe ) {
|
||||
this.clear_pulldowns();
|
||||
if ( this.focused_editor && this.focused_editor != editor ) {
|
||||
this.focused_editor.blur();
|
||||
this.clear_pulldowns();
|
||||
|
||||
if ( this.focused_editor.iframe ) {
|
||||
// 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.id == this.blank_editor_id && this.focused_editor.empty() ) {
|
||||
signal( this, "note_removed", this.focused_editor.id );
|
||||
|
@ -1034,6 +1035,7 @@ Wiki.prototype.editor_focused = function ( editor, synchronous ) {
|
|||
this.save_editor( null, null, null, synchronous );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( !this.focused_editor ) {
|
||||
this.focused_editor = editor;
|
||||
|
|
Reference in New Issue