From 41dade9f2827cb2f463319520251b2c628a5bed6 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 2 Oct 2008 23:59:39 -0700 Subject: [PATCH] Safari/Chrome notes now start out in title mode (again). --- static/js/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/Editor.js b/static/js/Editor.js index e37becf..5bcb4d7 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -262,7 +262,7 @@ Editor.prototype.exec_command = function ( command, parameter ) { Editor.prototype.insert_html = function ( html ) { if ( html.length == 0 ) return; - if ( !this.edit_enabled ) { + if ( !this.edit_enabled || strip( this.contents() ) == "" ) { this.document.body.innerHTML = html; return; }