diff --git a/static/js/Editor.js b/static/js/Editor.js index 5bcb4d7..0f41619 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -135,9 +135,15 @@ Editor.prototype.init_document = function () { // third and final stage of construction, invoked by init_document(). do not call directly Editor.prototype.finish_init = function () { - if ( !this.initial_text ) + if ( !this.initial_text ) { this.initial_text = "

"; + // WebKit hack: add a zero-width space to make the horizontal line under title show up in the + // correct position, even before there is a title + if ( WEBKIT ) + this.initial_text += "​"; + } + this.insert_html( this.initial_text ); // since the browser may subtly tweak the html when it's inserted, save off the browser's version