-
+ BE564E5FF5B2F8E4998F5BBB271BD6DE4C28A1562CDFA582D4444D57256AC61D101EB54D1AB7F3B1397BBA4AA73AF10F0DD37B6DCF375908B8A43B70B9863B8Amp-wp/wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm(0 . 0)(1 . 111)
119735 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
119736 <html xmlns="http://www.w3.org/1999/xhtml">
119737 <head>
119738 <title></title>
119739 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
119740 <script type="text/javascript" src="../../tiny_mce.js?ver=3211"></script>
119741 <script type="text/javascript">
119742 function patchCallback(settings, key) {
119743 if (settings[key])
119744 settings[key] = "window.opener." + settings[key];
119745 }
119746
119747 var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings, oeID = window.opener.tinyMCE.activeEditor.id;
119748
119749 // Clone array
119750 for (var n in paSe)
119751 settings[n] = paSe[n];
119752
119753 // Override options for fullscreen
119754 for (var n in paSe.fullscreen_settings)
119755 settings[n] = paSe.fullscreen_settings[n];
119756
119757 // Patch callbacks, make them point to window.opener
119758 patchCallback(settings, 'urlconverter_callback');
119759 patchCallback(settings, 'insertlink_callback');
119760 patchCallback(settings, 'insertimage_callback');
119761 patchCallback(settings, 'setupcontent_callback');
119762 patchCallback(settings, 'save_callback');
119763 patchCallback(settings, 'onchange_callback');
119764 patchCallback(settings, 'init_instance_callback');
119765 patchCallback(settings, 'file_browser_callback');
119766 patchCallback(settings, 'cleanup_callback');
119767 patchCallback(settings, 'execcommand_callback');
119768 patchCallback(settings, 'oninit');
119769
119770 // Set options
119771 delete settings.id;
119772 settings['mode'] = 'exact';
119773 settings['elements'] = 'fullscreenarea';
119774 settings['add_unload_trigger'] = false;
119775 settings['ask'] = false;
119776 settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI();
119777 settings['fullscreen_is_enabled'] = true;
119778 settings['fullscreen_editor_id'] = oeID;
119779 settings['theme_advanced_resizing'] = false;
119780 settings['strict_loading_mode'] = true;
119781
119782 settings.save_onsavecallback = function() {
119783 window.opener.tinyMCE.get(oeID).setContent(tinyMCE.get('fullscreenarea').getContent({format : 'raw'}), {format : 'raw'});
119784 window.opener.tinyMCE.get(oeID).execCommand('mceSave');
119785 window.close();
119786 };
119787
119788 function unloadHandler(e) {
119789 moveContent();
119790 }
119791
119792 function moveContent() {
119793 window.opener.tinyMCE.get(oeID).setContent(tinyMCE.activeEditor.getContent());
119794 }
119795
119796 function closeFullscreen() {
119797 moveContent();
119798 window.close();
119799 }
119800
119801 function doParentSubmit() {
119802 moveContent();
119803
119804 if (window.opener.tinyMCE.selectedInstance.formElement.form)
119805 window.opener.tinyMCE.selectedInstance.formElement.form.submit();
119806
119807 window.close();
119808
119809 return false;
119810 }
119811
119812 function render() {
119813 var e = document.getElementById('fullscreenarea'), vp, ed, ow, oh, dom = tinymce.DOM;
119814
119815 e.value = window.opener.tinyMCE.get(oeID).getContent();
119816
119817 vp = dom.getViewPort();
119818 settings.width = vp.w;
119819 settings.height = vp.h - 15;
119820
119821 tinymce.dom.Event.add(window, 'resize', function() {
119822 var vp = dom.getViewPort();
119823
119824 tinyMCE.activeEditor.theme.resizeTo(vp.w, vp.h);
119825 });
119826
119827 tinyMCE.init(settings);
119828 }
119829
119830 // Add onunload
119831 tinymce.dom.Event.add(window, "beforeunload", unloadHandler);
119832 </script>
119833 <base target="_self" />
119834 </head>
119835 <body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no">
119836 <form onsubmit="doParentSubmit();">
119837 <textarea id="fullscreenarea" style="width:100%; height:100%"></textarea>
119838 </form>
119839
119840 <script type="text/javascript">
119841 render();
119842 </script>
119843
119844 </body>
119845 </html>