comparison static/js/tiny_mce/plugins/fullscreen/editor_plugin_src.js @ 442:6c182ceb7147

Fixing #217; upgrade TinyMCE to 3.4.2 and enable the paste plugin.
author Brian Neal <bgneal@gmail.com>
date Thu, 26 May 2011 00:43:49 +0000
parents 88b2b9cb8c1f
children
comparison
equal deleted inserted replaced
441:33d0c55e57a9 442:6c182ceb7147
11 (function() { 11 (function() {
12 var DOM = tinymce.DOM; 12 var DOM = tinymce.DOM;
13 13
14 tinymce.create('tinymce.plugins.FullScreenPlugin', { 14 tinymce.create('tinymce.plugins.FullScreenPlugin', {
15 init : function(ed, url) { 15 init : function(ed, url) {
16 var t = this, s = {}, vp; 16 var t = this, s = {}, vp, posCss;
17 17
18 t.editor = ed; 18 t.editor = ed;
19 19
20 // Register commands 20 // Register commands
21 ed.addCommand('mceFullScreen', function() { 21 ed.addCommand('mceFullScreen', function() {
76 DOM.win.scrollTo(0, 0); 76 DOM.win.scrollTo(0, 0);
77 77
78 if (tinymce.isIE) 78 if (tinymce.isIE)
79 vp.h -= 1; 79 vp.h -= 1;
80 80
81 n = DOM.add(DOM.doc.body, 'div', {id : 'mce_fullscreen_container', style : 'position:' + (tinymce.isIE6 || (tinymce.isIE && !DOM.boxModel) ? 'absolute' : 'fixed') + ';top:0;left:0;width:' + vp.w + 'px;height:' + vp.h + 'px;z-index:200000;'}); 81 // Use fixed position if it exists
82 if (tinymce.isIE6)
83 posCss = 'absolute;top:' + vp.y;
84 else
85 posCss = 'fixed;top:0';
86
87 n = DOM.add(DOM.doc.body, 'div', {
88 id : 'mce_fullscreen_container',
89 style : 'position:' + posCss + ';left:0;width:' + vp.w + 'px;height:' + vp.h + 'px;z-index:200000;'});
82 DOM.add(n, 'div', {id : 'mce_fullscreen'}); 90 DOM.add(n, 'div', {id : 'mce_fullscreen'});
83 91
84 tinymce.each(ed.settings, function(v, n) { 92 tinymce.each(ed.settings, function(v, n) {
85 s[n] = v; 93 s[n] = v;
86 }); 94 });