it-logica-application-backbone 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/changelog.txt +100 -1198
- data/app/assets/javascripts/backbone_js/tinymce/examples/css/content.css +105 -105
- data/app/assets/javascripts/backbone_js/tinymce/examples/index.html +98 -98
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/jquery.tinymce.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/license.txt +504 -504
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css +5 -5
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js +56 -56
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js +43 -43
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm +58 -58
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css +13 -13
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js +49 -49
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm +235 -235
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js +464 -462
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css +8 -8
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js +60 -60
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js +543 -539
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm +338 -338
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin_src.js +175 -175
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin_src.js +8 -4
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin_src.js +433 -431
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/autosave/langs/en.js +3 -3
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +119 -119
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +163 -161
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js +84 -81
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js +42 -42
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm +42 -42
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js +43 -43
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/dialog.htm +22 -22
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js +83 -83
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js +19 -19
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js +3 -3
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -3
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css +142 -142
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +405 -405
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm +259 -259
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js +232 -232
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +159 -159
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -110
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js +53 -53
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +699 -699
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm +387 -387
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +82 -82
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js +261 -261
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +137 -137
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin_src.js +18 -14
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/css/media.css +17 -17
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin_src.js +898 -890
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js +73 -73
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/js/media.js +503 -470
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/media/media.htm +922 -922
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +53 -53
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +536 -539
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +73 -73
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js +885 -871
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js +36 -36
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js +51 -51
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm +26 -26
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm +21 -21
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/example.html +28 -28
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -73
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/preview.html +17 -17
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin_src.js +34 -34
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js +100 -100
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -6
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +60 -60
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +142 -142
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm +100 -100
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +436 -0
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/style/css/props.css +14 -14
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js +71 -71
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/style/js/props.js +709 -709
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/cell.htm +180 -180
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css +16 -16
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/css/row.css +25 -25
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/css/table.css +13 -13
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js +79 -55
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js +319 -319
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/js/merge_cells.js +27 -27
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/js/row.js +237 -237
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/js/table.js +499 -487
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm +32 -32
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/row.htm +158 -158
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/table/table.htm +188 -188
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/template/blank.htm +12 -12
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/template/css/template.css +23 -23
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin_src.js +158 -158
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/template/js/template.js +106 -106
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/template/template.htm +31 -31
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/visualblocks/css/visualblocks.css +21 -21
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/visualblocks/editor_plugin_src.js +62 -62
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +82 -82
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +122 -122
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +142 -142
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +142 -142
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +149 -149
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm +142 -142
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -11
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -9
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm +162 -162
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +131 -131
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm +162 -162
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -28
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -28
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +111 -111
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -28
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js +53 -53
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +229 -229
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +53 -53
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/about.htm +52 -52
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/anchor.htm +26 -26
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm +55 -55
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm +70 -70
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js +1490 -1481
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/image.htm +80 -80
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/about.js +73 -73
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/anchor.js +56 -44
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/charmap.js +363 -363
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/image.js +253 -253
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/link.js +159 -153
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/js/source_editor.js +78 -78
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/link.htm +57 -57
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/shortcuts.htm +47 -47
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css +50 -51
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css +118 -118
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/ui.css +219 -219
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/content.css +24 -25
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +106 -106
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/ui.css +106 -106
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/content.css +48 -49
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +118 -118
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +222 -222
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +7 -7
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -5
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm +25 -25
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/simple/editor_template_src.js +83 -83
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/simple/skins/default/content.css +25 -25
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/simple/skins/default/ui.css +32 -32
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -17
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -35
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/tiny_mce.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/tiny_mce_popup.js +1 -1
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/tiny_mce_src.js +17769 -16902
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/utils/editable_selects.js +70 -70
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/utils/form_utils.js +210 -210
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/utils/mctabs.js +161 -161
- data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/utils/validate.js +252 -252
- data/it-logica-application-backbone.gemspec +6 -2
- metadata +19 -15
@@ -1 +1 @@
|
|
1
|
-
(function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(d,e){var f=this,g={},c,b;f.editor=d;d.addCommand("mceFullScreen",function(){var i,j=a.doc.documentElement;if(d.getParam("fullscreen_is_enabled")){if(d.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",f.resizeFunc);tinyMCE.get(d.getParam("fullscreen_editor_id")).setContent(d.getContent());tinyMCE.remove(d);a.remove("mce_fullscreen_container");j.style.overflow=d.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",d.getParam("fullscreen_overflow"));a.win.scrollTo(d.getParam("fullscreen_scrollx"),d.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(d.getParam("fullscreen_new_window")){i=a.win.open(e+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{i.resizeTo(screen.availWidth,screen.availHeight)}catch(h){}}else{tinyMCE.oldSettings=tinyMCE.settings;g.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";g.fullscreen_html_overflow=a.getStyle(j,"overflow",1);c=a.getViewPort();g.fullscreen_scrollx=c.x;g.fullscreen_scrolly=c.y;if(tinymce.isOpera&&g.fullscreen_overflow=="visible"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&g.fullscreen_overflow=="scroll"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&(g.fullscreen_html_overflow=="visible"||g.fullscreen_html_overflow=="scroll")){g.fullscreen_html_overflow="auto"}if(g.fullscreen_overflow=="0px"){g.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");j.style.overflow="hidden";c=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){c.h-=1}if(tinymce.isIE6||document.compatMode=="BackCompat"){b="absolute;top:"+c.y}else{b="fixed;top:0"}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+b+";left:0;width:"+c.w+"px;height:"+c.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(d.settings,function(k,l){g[l]=k});g.id="mce_fullscreen";g.width=n.clientWidth;g.height=n.clientHeight-15;g.fullscreen_is_enabled=true;g.fullscreen_editor_id=d.id;g.theme_advanced_resizing=false;g.save_onsavecallback=function(){d.setContent(tinyMCE.get(g.id).getContent());d.execCommand("mceSave")};tinymce.each(d.getParam("fullscreen_settings"),function(m,l){g[l]=m});if(g.theme_advanced_toolbar_location==="external"){g.theme_advanced_toolbar_location="top"}f.fullscreenEditor=new tinymce.Editor("mce_fullscreen",g);f.fullscreenEditor.onInit.add(function(){f.fullscreenEditor.setContent(d.getContent());f.fullscreenEditor.focus()});f.fullscreenEditor.render();f.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");f.fullscreenElement.update();f.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var o=tinymce.DOM.getViewPort(),l=f.fullscreenEditor,k,m;k=l.dom.getSize(l.getContainer().
|
1
|
+
(function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(d,e){var f=this,g={},c,b;f.editor=d;d.addCommand("mceFullScreen",function(){var i,j=a.doc.documentElement;if(d.getParam("fullscreen_is_enabled")){if(d.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",f.resizeFunc);tinyMCE.get(d.getParam("fullscreen_editor_id")).setContent(d.getContent());tinyMCE.remove(d);a.remove("mce_fullscreen_container");j.style.overflow=d.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",d.getParam("fullscreen_overflow"));a.win.scrollTo(d.getParam("fullscreen_scrollx"),d.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(d.getParam("fullscreen_new_window")){i=a.win.open(e+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{i.resizeTo(screen.availWidth,screen.availHeight)}catch(h){}}else{tinyMCE.oldSettings=tinyMCE.settings;g.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";g.fullscreen_html_overflow=a.getStyle(j,"overflow",1);c=a.getViewPort();g.fullscreen_scrollx=c.x;g.fullscreen_scrolly=c.y;if(tinymce.isOpera&&g.fullscreen_overflow=="visible"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&g.fullscreen_overflow=="scroll"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&(g.fullscreen_html_overflow=="visible"||g.fullscreen_html_overflow=="scroll")){g.fullscreen_html_overflow="auto"}if(g.fullscreen_overflow=="0px"){g.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");j.style.overflow="hidden";c=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){c.h-=1}if(tinymce.isIE6||document.compatMode=="BackCompat"){b="absolute;top:"+c.y}else{b="fixed;top:0"}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+b+";left:0;width:"+c.w+"px;height:"+c.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(d.settings,function(k,l){g[l]=k});g.id="mce_fullscreen";g.width=n.clientWidth;g.height=n.clientHeight-15;g.fullscreen_is_enabled=true;g.fullscreen_editor_id=d.id;g.theme_advanced_resizing=false;g.save_onsavecallback=function(){d.setContent(tinyMCE.get(g.id).getContent());d.execCommand("mceSave")};tinymce.each(d.getParam("fullscreen_settings"),function(m,l){g[l]=m});if(g.theme_advanced_toolbar_location==="external"){g.theme_advanced_toolbar_location="top"}f.fullscreenEditor=new tinymce.Editor("mce_fullscreen",g);f.fullscreenEditor.onInit.add(function(){f.fullscreenEditor.setContent(d.getContent());f.fullscreenEditor.focus()});f.fullscreenEditor.render();f.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");f.fullscreenElement.update();f.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var o=tinymce.DOM.getViewPort(),l=f.fullscreenEditor,k,m;k=l.dom.getSize(l.getContainer().getElementsByTagName("table")[0]);m=l.dom.getSize(l.getContainer().getElementsByTagName("iframe")[0]);l.theme.resizeTo(o.w-k.w+m.w,o.h-k.h+m.h)})}});d.addButton("fullscreen",{title:"fullscreen.desc",cmd:"mceFullScreen"});d.onNodeChange.add(function(i,h){h.setActive("fullscreen",i.getParam("fullscreen_is_enabled"))})},getInfo:function(){return{longname:"Fullscreen",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("fullscreen",tinymce.plugins.FullScreenPlugin)})();
|
@@ -1,159 +1,159 @@
|
|
1
|
-
/**
|
2
|
-
* editor_plugin_src.js
|
3
|
-
*
|
4
|
-
* Copyright 2009, Moxiecode Systems AB
|
5
|
-
* Released under LGPL License.
|
6
|
-
*
|
7
|
-
* License: http://tinymce.moxiecode.com/license
|
8
|
-
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function() {
|
12
|
-
var DOM = tinymce.DOM;
|
13
|
-
|
14
|
-
tinymce.create('tinymce.plugins.FullScreenPlugin', {
|
15
|
-
init : function(ed, url) {
|
16
|
-
var t = this, s = {}, vp, posCss;
|
17
|
-
|
18
|
-
t.editor = ed;
|
19
|
-
|
20
|
-
// Register commands
|
21
|
-
ed.addCommand('mceFullScreen', function() {
|
22
|
-
var win, de = DOM.doc.documentElement;
|
23
|
-
|
24
|
-
if (ed.getParam('fullscreen_is_enabled')) {
|
25
|
-
if (ed.getParam('fullscreen_new_window'))
|
26
|
-
closeFullscreen(); // Call to close in new window
|
27
|
-
else {
|
28
|
-
DOM.win.setTimeout(function() {
|
29
|
-
tinymce.dom.Event.remove(DOM.win, 'resize', t.resizeFunc);
|
30
|
-
tinyMCE.get(ed.getParam('fullscreen_editor_id')).setContent(ed.getContent());
|
31
|
-
tinyMCE.remove(ed);
|
32
|
-
DOM.remove('mce_fullscreen_container');
|
33
|
-
de.style.overflow = ed.getParam('fullscreen_html_overflow');
|
34
|
-
DOM.setStyle(DOM.doc.body, 'overflow', ed.getParam('fullscreen_overflow'));
|
35
|
-
DOM.win.scrollTo(ed.getParam('fullscreen_scrollx'), ed.getParam('fullscreen_scrolly'));
|
36
|
-
tinyMCE.settings = tinyMCE.oldSettings; // Restore old settings
|
37
|
-
}, 10);
|
38
|
-
}
|
39
|
-
|
40
|
-
return;
|
41
|
-
}
|
42
|
-
|
43
|
-
if (ed.getParam('fullscreen_new_window')) {
|
44
|
-
win = DOM.win.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);
|
45
|
-
try {
|
46
|
-
win.resizeTo(screen.availWidth, screen.availHeight);
|
47
|
-
} catch (e) {
|
48
|
-
// Ignore
|
49
|
-
}
|
50
|
-
} else {
|
51
|
-
tinyMCE.oldSettings = tinyMCE.settings; // Store old settings
|
52
|
-
s.fullscreen_overflow = DOM.getStyle(DOM.doc.body, 'overflow', 1) || 'auto';
|
53
|
-
s.fullscreen_html_overflow = DOM.getStyle(de, 'overflow', 1);
|
54
|
-
vp = DOM.getViewPort();
|
55
|
-
s.fullscreen_scrollx = vp.x;
|
56
|
-
s.fullscreen_scrolly = vp.y;
|
57
|
-
|
58
|
-
// Fixes an Opera bug where the scrollbars doesn't reappear
|
59
|
-
if (tinymce.isOpera && s.fullscreen_overflow == 'visible')
|
60
|
-
s.fullscreen_overflow = 'auto';
|
61
|
-
|
62
|
-
// Fixes an IE bug where horizontal scrollbars would appear
|
63
|
-
if (tinymce.isIE && s.fullscreen_overflow == 'scroll')
|
64
|
-
s.fullscreen_overflow = 'auto';
|
65
|
-
|
66
|
-
// Fixes an IE bug where the scrollbars doesn't reappear
|
67
|
-
if (tinymce.isIE && (s.fullscreen_html_overflow == 'visible' || s.fullscreen_html_overflow == 'scroll'))
|
68
|
-
s.fullscreen_html_overflow = 'auto';
|
69
|
-
|
70
|
-
if (s.fullscreen_overflow == '0px')
|
71
|
-
s.fullscreen_overflow = '';
|
72
|
-
|
73
|
-
DOM.setStyle(DOM.doc.body, 'overflow', 'hidden');
|
74
|
-
de.style.overflow = 'hidden'; //Fix for IE6/7
|
75
|
-
vp = DOM.getViewPort();
|
76
|
-
DOM.win.scrollTo(0, 0);
|
77
|
-
|
78
|
-
if (tinymce.isIE)
|
79
|
-
vp.h -= 1;
|
80
|
-
|
81
|
-
// Use fixed position if it exists
|
82
|
-
if (tinymce.isIE6 || document.compatMode == 'BackCompat')
|
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;'});
|
90
|
-
DOM.add(n, 'div', {id : 'mce_fullscreen'});
|
91
|
-
|
92
|
-
tinymce.each(ed.settings, function(v, n) {
|
93
|
-
s[n] = v;
|
94
|
-
});
|
95
|
-
|
96
|
-
s.id = 'mce_fullscreen';
|
97
|
-
s.width = n.clientWidth;
|
98
|
-
s.height = n.clientHeight - 15;
|
99
|
-
s.fullscreen_is_enabled = true;
|
100
|
-
s.fullscreen_editor_id = ed.id;
|
101
|
-
s.theme_advanced_resizing = false;
|
102
|
-
s.save_onsavecallback = function() {
|
103
|
-
ed.setContent(tinyMCE.get(s.id).getContent());
|
104
|
-
ed.execCommand('mceSave');
|
105
|
-
};
|
106
|
-
|
107
|
-
tinymce.each(ed.getParam('fullscreen_settings'), function(v, k) {
|
108
|
-
s[k] = v;
|
109
|
-
});
|
110
|
-
|
111
|
-
if (s.theme_advanced_toolbar_location === 'external')
|
112
|
-
s.theme_advanced_toolbar_location = 'top';
|
113
|
-
|
114
|
-
t.fullscreenEditor = new tinymce.Editor('mce_fullscreen', s);
|
115
|
-
t.fullscreenEditor.onInit.add(function() {
|
116
|
-
t.fullscreenEditor.setContent(ed.getContent());
|
117
|
-
t.fullscreenEditor.focus();
|
118
|
-
});
|
119
|
-
|
120
|
-
t.fullscreenEditor.render();
|
121
|
-
|
122
|
-
t.fullscreenElement = new tinymce.dom.Element('mce_fullscreen_container');
|
123
|
-
t.fullscreenElement.update();
|
124
|
-
//document.body.overflow = 'hidden';
|
125
|
-
|
126
|
-
t.resizeFunc = tinymce.dom.Event.add(DOM.win, 'resize', function() {
|
127
|
-
var vp = tinymce.DOM.getViewPort(), fed = t.fullscreenEditor, outerSize, innerSize;
|
128
|
-
|
129
|
-
// Get outer/inner size to get a delta size that can be used to calc the new iframe size
|
130
|
-
outerSize = fed.dom.getSize(fed.getContainer().
|
131
|
-
innerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('iframe')[0]);
|
132
|
-
|
133
|
-
fed.theme.resizeTo(vp.w - outerSize.w + innerSize.w, vp.h - outerSize.h + innerSize.h);
|
134
|
-
});
|
135
|
-
}
|
136
|
-
});
|
137
|
-
|
138
|
-
// Register buttons
|
139
|
-
ed.addButton('fullscreen', {title : 'fullscreen.desc', cmd : 'mceFullScreen'});
|
140
|
-
|
141
|
-
ed.onNodeChange.add(function(ed, cm) {
|
142
|
-
cm.setActive('fullscreen', ed.getParam('fullscreen_is_enabled'));
|
143
|
-
});
|
144
|
-
},
|
145
|
-
|
146
|
-
getInfo : function() {
|
147
|
-
return {
|
148
|
-
longname : 'Fullscreen',
|
149
|
-
author : 'Moxiecode Systems AB',
|
150
|
-
authorurl : 'http://tinymce.moxiecode.com',
|
151
|
-
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen',
|
152
|
-
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
153
|
-
};
|
154
|
-
}
|
155
|
-
});
|
156
|
-
|
157
|
-
// Register plugin
|
158
|
-
tinymce.PluginManager.add('fullscreen', tinymce.plugins.FullScreenPlugin);
|
159
|
-
})();
|
1
|
+
/**
|
2
|
+
* editor_plugin_src.js
|
3
|
+
*
|
4
|
+
* Copyright 2009, Moxiecode Systems AB
|
5
|
+
* Released under LGPL License.
|
6
|
+
*
|
7
|
+
* License: http://tinymce.moxiecode.com/license
|
8
|
+
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
+
*/
|
10
|
+
|
11
|
+
(function() {
|
12
|
+
var DOM = tinymce.DOM;
|
13
|
+
|
14
|
+
tinymce.create('tinymce.plugins.FullScreenPlugin', {
|
15
|
+
init : function(ed, url) {
|
16
|
+
var t = this, s = {}, vp, posCss;
|
17
|
+
|
18
|
+
t.editor = ed;
|
19
|
+
|
20
|
+
// Register commands
|
21
|
+
ed.addCommand('mceFullScreen', function() {
|
22
|
+
var win, de = DOM.doc.documentElement;
|
23
|
+
|
24
|
+
if (ed.getParam('fullscreen_is_enabled')) {
|
25
|
+
if (ed.getParam('fullscreen_new_window'))
|
26
|
+
closeFullscreen(); // Call to close in new window
|
27
|
+
else {
|
28
|
+
DOM.win.setTimeout(function() {
|
29
|
+
tinymce.dom.Event.remove(DOM.win, 'resize', t.resizeFunc);
|
30
|
+
tinyMCE.get(ed.getParam('fullscreen_editor_id')).setContent(ed.getContent());
|
31
|
+
tinyMCE.remove(ed);
|
32
|
+
DOM.remove('mce_fullscreen_container');
|
33
|
+
de.style.overflow = ed.getParam('fullscreen_html_overflow');
|
34
|
+
DOM.setStyle(DOM.doc.body, 'overflow', ed.getParam('fullscreen_overflow'));
|
35
|
+
DOM.win.scrollTo(ed.getParam('fullscreen_scrollx'), ed.getParam('fullscreen_scrolly'));
|
36
|
+
tinyMCE.settings = tinyMCE.oldSettings; // Restore old settings
|
37
|
+
}, 10);
|
38
|
+
}
|
39
|
+
|
40
|
+
return;
|
41
|
+
}
|
42
|
+
|
43
|
+
if (ed.getParam('fullscreen_new_window')) {
|
44
|
+
win = DOM.win.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);
|
45
|
+
try {
|
46
|
+
win.resizeTo(screen.availWidth, screen.availHeight);
|
47
|
+
} catch (e) {
|
48
|
+
// Ignore
|
49
|
+
}
|
50
|
+
} else {
|
51
|
+
tinyMCE.oldSettings = tinyMCE.settings; // Store old settings
|
52
|
+
s.fullscreen_overflow = DOM.getStyle(DOM.doc.body, 'overflow', 1) || 'auto';
|
53
|
+
s.fullscreen_html_overflow = DOM.getStyle(de, 'overflow', 1);
|
54
|
+
vp = DOM.getViewPort();
|
55
|
+
s.fullscreen_scrollx = vp.x;
|
56
|
+
s.fullscreen_scrolly = vp.y;
|
57
|
+
|
58
|
+
// Fixes an Opera bug where the scrollbars doesn't reappear
|
59
|
+
if (tinymce.isOpera && s.fullscreen_overflow == 'visible')
|
60
|
+
s.fullscreen_overflow = 'auto';
|
61
|
+
|
62
|
+
// Fixes an IE bug where horizontal scrollbars would appear
|
63
|
+
if (tinymce.isIE && s.fullscreen_overflow == 'scroll')
|
64
|
+
s.fullscreen_overflow = 'auto';
|
65
|
+
|
66
|
+
// Fixes an IE bug where the scrollbars doesn't reappear
|
67
|
+
if (tinymce.isIE && (s.fullscreen_html_overflow == 'visible' || s.fullscreen_html_overflow == 'scroll'))
|
68
|
+
s.fullscreen_html_overflow = 'auto';
|
69
|
+
|
70
|
+
if (s.fullscreen_overflow == '0px')
|
71
|
+
s.fullscreen_overflow = '';
|
72
|
+
|
73
|
+
DOM.setStyle(DOM.doc.body, 'overflow', 'hidden');
|
74
|
+
de.style.overflow = 'hidden'; //Fix for IE6/7
|
75
|
+
vp = DOM.getViewPort();
|
76
|
+
DOM.win.scrollTo(0, 0);
|
77
|
+
|
78
|
+
if (tinymce.isIE)
|
79
|
+
vp.h -= 1;
|
80
|
+
|
81
|
+
// Use fixed position if it exists
|
82
|
+
if (tinymce.isIE6 || document.compatMode == 'BackCompat')
|
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;'});
|
90
|
+
DOM.add(n, 'div', {id : 'mce_fullscreen'});
|
91
|
+
|
92
|
+
tinymce.each(ed.settings, function(v, n) {
|
93
|
+
s[n] = v;
|
94
|
+
});
|
95
|
+
|
96
|
+
s.id = 'mce_fullscreen';
|
97
|
+
s.width = n.clientWidth;
|
98
|
+
s.height = n.clientHeight - 15;
|
99
|
+
s.fullscreen_is_enabled = true;
|
100
|
+
s.fullscreen_editor_id = ed.id;
|
101
|
+
s.theme_advanced_resizing = false;
|
102
|
+
s.save_onsavecallback = function() {
|
103
|
+
ed.setContent(tinyMCE.get(s.id).getContent());
|
104
|
+
ed.execCommand('mceSave');
|
105
|
+
};
|
106
|
+
|
107
|
+
tinymce.each(ed.getParam('fullscreen_settings'), function(v, k) {
|
108
|
+
s[k] = v;
|
109
|
+
});
|
110
|
+
|
111
|
+
if (s.theme_advanced_toolbar_location === 'external')
|
112
|
+
s.theme_advanced_toolbar_location = 'top';
|
113
|
+
|
114
|
+
t.fullscreenEditor = new tinymce.Editor('mce_fullscreen', s);
|
115
|
+
t.fullscreenEditor.onInit.add(function() {
|
116
|
+
t.fullscreenEditor.setContent(ed.getContent());
|
117
|
+
t.fullscreenEditor.focus();
|
118
|
+
});
|
119
|
+
|
120
|
+
t.fullscreenEditor.render();
|
121
|
+
|
122
|
+
t.fullscreenElement = new tinymce.dom.Element('mce_fullscreen_container');
|
123
|
+
t.fullscreenElement.update();
|
124
|
+
//document.body.overflow = 'hidden';
|
125
|
+
|
126
|
+
t.resizeFunc = tinymce.dom.Event.add(DOM.win, 'resize', function() {
|
127
|
+
var vp = tinymce.DOM.getViewPort(), fed = t.fullscreenEditor, outerSize, innerSize;
|
128
|
+
|
129
|
+
// Get outer/inner size to get a delta size that can be used to calc the new iframe size
|
130
|
+
outerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('table')[0]);
|
131
|
+
innerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('iframe')[0]);
|
132
|
+
|
133
|
+
fed.theme.resizeTo(vp.w - outerSize.w + innerSize.w, vp.h - outerSize.h + innerSize.h);
|
134
|
+
});
|
135
|
+
}
|
136
|
+
});
|
137
|
+
|
138
|
+
// Register buttons
|
139
|
+
ed.addButton('fullscreen', {title : 'fullscreen.desc', cmd : 'mceFullScreen'});
|
140
|
+
|
141
|
+
ed.onNodeChange.add(function(ed, cm) {
|
142
|
+
cm.setActive('fullscreen', ed.getParam('fullscreen_is_enabled'));
|
143
|
+
});
|
144
|
+
},
|
145
|
+
|
146
|
+
getInfo : function() {
|
147
|
+
return {
|
148
|
+
longname : 'Fullscreen',
|
149
|
+
author : 'Moxiecode Systems AB',
|
150
|
+
authorurl : 'http://tinymce.moxiecode.com',
|
151
|
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen',
|
152
|
+
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
153
|
+
};
|
154
|
+
}
|
155
|
+
});
|
156
|
+
|
157
|
+
// Register plugin
|
158
|
+
tinymce.PluginManager.add('fullscreen', tinymce.plugins.FullScreenPlugin);
|
159
|
+
})();
|
data/app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm
CHANGED
@@ -1,110 +1,110 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<title></title>
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
6
|
-
<script type="text/javascript" src="../../tiny_mce.js"></script>
|
7
|
-
<script type="text/javascript">
|
8
|
-
function patchCallback(settings, key) {
|
9
|
-
if (settings[key])
|
10
|
-
settings[key] = "window.opener." + settings[key];
|
11
|
-
}
|
12
|
-
|
13
|
-
var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings, oeID = window.opener.tinyMCE.activeEditor.id;
|
14
|
-
|
15
|
-
// Clone array
|
16
|
-
for (var n in paSe)
|
17
|
-
settings[n] = paSe[n];
|
18
|
-
|
19
|
-
// Override options for fullscreen
|
20
|
-
for (var n in paSe.fullscreen_settings)
|
21
|
-
settings[n] = paSe.fullscreen_settings[n];
|
22
|
-
|
23
|
-
// Patch callbacks, make them point to window.opener
|
24
|
-
patchCallback(settings, 'urlconverter_callback');
|
25
|
-
patchCallback(settings, 'insertlink_callback');
|
26
|
-
patchCallback(settings, 'insertimage_callback');
|
27
|
-
patchCallback(settings, 'setupcontent_callback');
|
28
|
-
patchCallback(settings, 'save_callback');
|
29
|
-
patchCallback(settings, 'onchange_callback');
|
30
|
-
patchCallback(settings, 'init_instance_callback');
|
31
|
-
patchCallback(settings, 'file_browser_callback');
|
32
|
-
patchCallback(settings, 'cleanup_callback');
|
33
|
-
patchCallback(settings, 'execcommand_callback');
|
34
|
-
patchCallback(settings, 'oninit');
|
35
|
-
|
36
|
-
// Set options
|
37
|
-
delete settings.id;
|
38
|
-
settings['mode'] = 'exact';
|
39
|
-
settings['elements'] = 'fullscreenarea';
|
40
|
-
settings['add_unload_trigger'] = false;
|
41
|
-
settings['ask'] = false;
|
42
|
-
settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI();
|
43
|
-
settings['fullscreen_is_enabled'] = true;
|
44
|
-
settings['fullscreen_editor_id'] = oeID;
|
45
|
-
settings['theme_advanced_resizing'] = false;
|
46
|
-
settings['strict_loading_mode'] = true;
|
47
|
-
|
48
|
-
settings.save_onsavecallback = function() {
|
49
|
-
window.opener.tinyMCE.get(oeID).setContent(tinyMCE.get('fullscreenarea').getContent({format : 'raw'}), {format : 'raw'});
|
50
|
-
window.opener.tinyMCE.get(oeID).execCommand('mceSave');
|
51
|
-
window.close();
|
52
|
-
};
|
53
|
-
|
54
|
-
function unloadHandler(e) {
|
55
|
-
moveContent();
|
56
|
-
}
|
57
|
-
|
58
|
-
function moveContent() {
|
59
|
-
window.opener.tinyMCE.get(oeID).setContent(tinyMCE.activeEditor.getContent());
|
60
|
-
}
|
61
|
-
|
62
|
-
function closeFullscreen() {
|
63
|
-
moveContent();
|
64
|
-
window.close();
|
65
|
-
}
|
66
|
-
|
67
|
-
function doParentSubmit() {
|
68
|
-
moveContent();
|
69
|
-
|
70
|
-
if (window.opener.tinyMCE.selectedInstance.formElement.form)
|
71
|
-
window.opener.tinyMCE.selectedInstance.formElement.form.submit();
|
72
|
-
|
73
|
-
window.close();
|
74
|
-
|
75
|
-
return false;
|
76
|
-
}
|
77
|
-
|
78
|
-
function render() {
|
79
|
-
var e = document.getElementById('fullscreenarea'), vp, ed, ow, oh, dom = tinymce.DOM;
|
80
|
-
|
81
|
-
e.value = window.opener.tinyMCE.get(oeID).getContent();
|
82
|
-
|
83
|
-
vp = dom.getViewPort();
|
84
|
-
settings.width = vp.w;
|
85
|
-
settings.height = vp.h - 15;
|
86
|
-
|
87
|
-
tinymce.dom.Event.add(window, 'resize', function() {
|
88
|
-
var vp = dom.getViewPort();
|
89
|
-
|
90
|
-
tinyMCE.activeEditor.theme.resizeTo(vp.w, vp.h);
|
91
|
-
});
|
92
|
-
|
93
|
-
tinyMCE.init(settings);
|
94
|
-
}
|
95
|
-
|
96
|
-
// Add onunload
|
97
|
-
tinymce.dom.Event.add(window, "beforeunload", unloadHandler);
|
98
|
-
</script>
|
99
|
-
</head>
|
100
|
-
<body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no">
|
101
|
-
<form onsubmit="doParentSubmit();">
|
102
|
-
<textarea id="fullscreenarea" style="width:100%; height:100%"></textarea>
|
103
|
-
</form>
|
104
|
-
|
105
|
-
<script type="text/javascript">
|
106
|
-
render();
|
107
|
-
</script>
|
108
|
-
|
109
|
-
</body>
|
110
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<title></title>
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
6
|
+
<script type="text/javascript" src="../../tiny_mce.js"></script>
|
7
|
+
<script type="text/javascript">
|
8
|
+
function patchCallback(settings, key) {
|
9
|
+
if (settings[key])
|
10
|
+
settings[key] = "window.opener." + settings[key];
|
11
|
+
}
|
12
|
+
|
13
|
+
var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings, oeID = window.opener.tinyMCE.activeEditor.id;
|
14
|
+
|
15
|
+
// Clone array
|
16
|
+
for (var n in paSe)
|
17
|
+
settings[n] = paSe[n];
|
18
|
+
|
19
|
+
// Override options for fullscreen
|
20
|
+
for (var n in paSe.fullscreen_settings)
|
21
|
+
settings[n] = paSe.fullscreen_settings[n];
|
22
|
+
|
23
|
+
// Patch callbacks, make them point to window.opener
|
24
|
+
patchCallback(settings, 'urlconverter_callback');
|
25
|
+
patchCallback(settings, 'insertlink_callback');
|
26
|
+
patchCallback(settings, 'insertimage_callback');
|
27
|
+
patchCallback(settings, 'setupcontent_callback');
|
28
|
+
patchCallback(settings, 'save_callback');
|
29
|
+
patchCallback(settings, 'onchange_callback');
|
30
|
+
patchCallback(settings, 'init_instance_callback');
|
31
|
+
patchCallback(settings, 'file_browser_callback');
|
32
|
+
patchCallback(settings, 'cleanup_callback');
|
33
|
+
patchCallback(settings, 'execcommand_callback');
|
34
|
+
patchCallback(settings, 'oninit');
|
35
|
+
|
36
|
+
// Set options
|
37
|
+
delete settings.id;
|
38
|
+
settings['mode'] = 'exact';
|
39
|
+
settings['elements'] = 'fullscreenarea';
|
40
|
+
settings['add_unload_trigger'] = false;
|
41
|
+
settings['ask'] = false;
|
42
|
+
settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI();
|
43
|
+
settings['fullscreen_is_enabled'] = true;
|
44
|
+
settings['fullscreen_editor_id'] = oeID;
|
45
|
+
settings['theme_advanced_resizing'] = false;
|
46
|
+
settings['strict_loading_mode'] = true;
|
47
|
+
|
48
|
+
settings.save_onsavecallback = function() {
|
49
|
+
window.opener.tinyMCE.get(oeID).setContent(tinyMCE.get('fullscreenarea').getContent({format : 'raw'}), {format : 'raw'});
|
50
|
+
window.opener.tinyMCE.get(oeID).execCommand('mceSave');
|
51
|
+
window.close();
|
52
|
+
};
|
53
|
+
|
54
|
+
function unloadHandler(e) {
|
55
|
+
moveContent();
|
56
|
+
}
|
57
|
+
|
58
|
+
function moveContent() {
|
59
|
+
window.opener.tinyMCE.get(oeID).setContent(tinyMCE.activeEditor.getContent());
|
60
|
+
}
|
61
|
+
|
62
|
+
function closeFullscreen() {
|
63
|
+
moveContent();
|
64
|
+
window.close();
|
65
|
+
}
|
66
|
+
|
67
|
+
function doParentSubmit() {
|
68
|
+
moveContent();
|
69
|
+
|
70
|
+
if (window.opener.tinyMCE.selectedInstance.formElement.form)
|
71
|
+
window.opener.tinyMCE.selectedInstance.formElement.form.submit();
|
72
|
+
|
73
|
+
window.close();
|
74
|
+
|
75
|
+
return false;
|
76
|
+
}
|
77
|
+
|
78
|
+
function render() {
|
79
|
+
var e = document.getElementById('fullscreenarea'), vp, ed, ow, oh, dom = tinymce.DOM;
|
80
|
+
|
81
|
+
e.value = window.opener.tinyMCE.get(oeID).getContent();
|
82
|
+
|
83
|
+
vp = dom.getViewPort();
|
84
|
+
settings.width = vp.w;
|
85
|
+
settings.height = vp.h - 15;
|
86
|
+
|
87
|
+
tinymce.dom.Event.add(window, 'resize', function() {
|
88
|
+
var vp = dom.getViewPort();
|
89
|
+
|
90
|
+
tinyMCE.activeEditor.theme.resizeTo(vp.w, vp.h);
|
91
|
+
});
|
92
|
+
|
93
|
+
tinyMCE.init(settings);
|
94
|
+
}
|
95
|
+
|
96
|
+
// Add onunload
|
97
|
+
tinymce.dom.Event.add(window, "beforeunload", unloadHandler);
|
98
|
+
</script>
|
99
|
+
</head>
|
100
|
+
<body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no">
|
101
|
+
<form onsubmit="doParentSubmit();">
|
102
|
+
<textarea id="fullscreenarea" style="width:100%; height:100%"></textarea>
|
103
|
+
</form>
|
104
|
+
|
105
|
+
<script type="text/javascript">
|
106
|
+
render();
|
107
|
+
</script>
|
108
|
+
|
109
|
+
</body>
|
110
|
+
</html>
|