witten
/
luminotes
Archived
1
0
Fork 0

Resizing all iframes whenever the window resizes.

This commit is contained in:
Dan Helfman 2007-11-29 20:15:37 +00:00
parent ef66811968
commit 2e178f08be
1 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,7 @@ function Wiki( invoker ) {
connect( "search_form", "onsubmit", this, "search" );
connect( "html", "onclick", this, "background_clicked" );
connect( "html", "onkeydown", this, "key_pressed" );
connect( window, "onresize", this, "resize_editors" );
var blank_note_stub = getElement( "blank_note_stub" );
if ( blank_note_stub ) {
@ -628,6 +629,14 @@ Wiki.prototype.create_editor = function ( id, note_text, deleted_from_id, revisi
return editor;
}
Wiki.prototype.resize_editors = function () {
var iframes = getElementsByTagAndClassName( "iframe", "note_frame" );
for ( var i in iframes ) {
var editor = iframes[ i ].editor;
editor.resize();
}
}
Wiki.prototype.editor_state_changed = function ( editor ) {
this.update_toolbar();
this.display_link_pulldown( editor );