diff --git a/editor.js b/editor.js index bb4da07..7a5f41c 100644 --- a/editor.js +++ b/editor.js @@ -1005,7 +1005,7 @@ You should have received a copy of the GNU General Public License along with thi 'togglescreen':true },options); - var containerDiv = $("
",{ class : "row-fluid Editor-container" }); + var containerDiv = $("
",{ class : "row-fluid Editor-container", tabindex : "0" }); var $this = $(this).hide(); $this.after(containerDiv); @@ -1031,9 +1031,17 @@ You should have received a copy of the GNU General Public License along with thi $(editor_Content).data("statusBar").html('
'+'Words : '+wordCount+'
'); $(editor_Content).data("statusBar").append('
'+'Characters : '+charCount+'
'); }); - } - - + } + + containerDiv.on("blur", function (event) { + console.log(typeof editorObj, editorObj); + $this.val(methods.getText.apply(editor_Content)); + if (typeof options.changeCallback !== 'undefined') options.changeCallback($this.val()); + $(editorObj).data("editor").focus(); + + }); + + for(var item in menuItems){ if(!settings[item] ){ //if the display is not set to true for the button in the settings. if(settings[item] in menuGroups){