--- a/includes/clientside/tinymce/plugins/fullscreen/editor_plugin_src.js Thu Mar 06 20:45:46 2008 -0500
+++ b/includes/clientside/tinymce/plugins/fullscreen/editor_plugin_src.js Thu Mar 06 20:47:11 2008 -0500
@@ -1,5 +1,5 @@
/**
- * $Id: editor_plugin_src.js 609 2008-02-18 16:19:27Z spocke $
+ * $Id: editor_plugin_src.js 636 2008-02-25 13:38:28Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
@@ -23,6 +23,7 @@
closeFullscreen(); // Call to close in new window
else {
window.setTimeout(function() {
+ tinymce.dom.Event.remove(window, 'resize', t.resizeFunc);
tinyMCE.get(ed.getParam('fullscreen_editor_id')).setContent(ed.getContent({format : 'raw'}), {format : 'raw'});
tinyMCE.remove(ed);
DOM.remove('mce_fullscreen_container');
@@ -36,7 +37,7 @@
}
if (ed.getParam('fullscreen_new_window')) {
- win = window.open(url + "/fullscreen.htm", "mceFullScreenPopup", "fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=no,left=0,top=0,width=" + screen.availWidth + ",height=" + screen.availHeight);
+ win = window.open(url + "/fullscreen.htm", "mceFullScreenPopup", "fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width=" + screen.availWidth + ",height=" + screen.availHeight);
try {
win.resizeTo(screen.availWidth, screen.availHeight);
} catch (e) {
@@ -104,6 +105,12 @@
t.fullscreenElement = new tinymce.dom.Element('mce_fullscreen_container');
t.fullscreenElement.update();
//document.body.overflow = 'hidden';
+
+ t.resizeFunc = tinymce.dom.Event.add(window, 'resize', function() {
+ var vp = tinymce.DOM.getViewPort();
+
+ t.fullscreenEditor.theme.resizeTo(vp.w, vp.h);
+ });
}
});