comparison media/js/tiny_mce/plugins/fullscreen/editor_plugin_src.js @ 217:237710206167

Update TinyMCE to 3.3.6
author Brian Neal <bgneal@gmail.com>
date Tue, 01 Jun 2010 04:49:29 +0000
parents 149c3567fec1
children 6ed2932901fa
comparison
equal deleted inserted replaced
216:fe900598f81c 217:237710206167
108 t.fullscreenEditor.setContent(ed.getContent()); 108 t.fullscreenEditor.setContent(ed.getContent());
109 t.fullscreenEditor.focus(); 109 t.fullscreenEditor.focus();
110 }); 110 });
111 111
112 t.fullscreenEditor.render(); 112 t.fullscreenEditor.render();
113 tinyMCE.add(t.fullscreenEditor);
114 113
115 t.fullscreenElement = new tinymce.dom.Element('mce_fullscreen_container'); 114 t.fullscreenElement = new tinymce.dom.Element('mce_fullscreen_container');
116 t.fullscreenElement.update(); 115 t.fullscreenElement.update();
117 //document.body.overflow = 'hidden'; 116 //document.body.overflow = 'hidden';
118 117
119 t.resizeFunc = tinymce.dom.Event.add(DOM.win, 'resize', function() { 118 t.resizeFunc = tinymce.dom.Event.add(DOM.win, 'resize', function() {
120 var vp = tinymce.DOM.getViewPort(); 119 var vp = tinymce.DOM.getViewPort(), fed = t.fullscreenEditor, outerSize, innerSize;
121 120
122 t.fullscreenEditor.theme.resizeTo(vp.w, vp.h); 121 // Get outer/inner size to get a delta size that can be used to calc the new iframe size
122 outerSize = fed.dom.getSize(fed.getContainer());
123 innerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('iframe')[0]);
124
125 fed.theme.resizeTo(vp.w - outerSize.w + innerSize.w, vp.h - outerSize.h + innerSize.h);
123 }); 126 });
124 } 127 }
125 }); 128 });
126 129
127 // Register buttons 130 // Register buttons