diff --git a/static/js/Editor.js b/static/js/Editor.js index 9215917..25b6cd9 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -1,4 +1,4 @@ -function Editor( id, notebook_id, note_text, deleted_from, revisions_list, insert_after_iframe_id, read_write, startup, highlight, focus ) { +function Editor( id, notebook_id, note_text, deleted_from, revisions_list, read_write, startup, highlight, focus ) { this.id = id; this.notebook_id = notebook_id; this.initial_text = note_text; @@ -87,15 +87,8 @@ function Editor( id, notebook_id, note_text, deleted_from, revisions_list, inser this.hide_button ? this.hide_button : null ); - // if an iframe has been given to insert this new editor after, then insert the new editor's - // iframe. otherwise just append the iframe for the new editor - if ( insert_after_iframe_id ) { - insertSiblingNodesAfter( insert_after_iframe_id, this.note_controls ); - insertSiblingNodesAfter( this.note_controls, this.iframe ); - } else { - appendChildNodes( "notes", this.note_controls ); - appendChildNodes( "notes", this.iframe ); - } + appendChildNodes( "notes", this.note_controls ); + appendChildNodes( "notes", this.iframe ); connect( this.iframe, "onload", function ( event ) { self.init_document(); } ); } diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 524f411..e983f39 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -423,7 +423,7 @@ Wiki.prototype.create_editor = function ( id, note_text, deleted_from, revisions } var startup = this.startup_notes[ id ]; - var editor = new Editor( id, this.notebook_id, note_text, deleted_from, revisions_list, undefined, read_write, startup, highlight, focus ); + var editor = new Editor( id, this.notebook_id, note_text, deleted_from, revisions_list, read_write, startup, highlight, focus ); if ( this.read_write ) { connect( editor, "state_changed", this, "editor_state_changed" );