- Timestamp:
- 06/19/2008 04:55:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm
r8047 r8127 4 4 <title></title> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 6 <script type="text/javascript" src="../../tiny_mce.js?ver=3 091"></script>6 <script type="text/javascript" src="../../tiny_mce.js?ver=3101"></script> 7 7 <script type="text/javascript"> 8 8 function patchCallback(settings, key) { … … 11 11 } 12 12 13 var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings ;13 var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings, oeID = window.opener.tinyMCE.activeEditor.id; 14 14 15 15 // Clone array … … 42 42 settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI(); 43 43 settings['fullscreen_is_enabled'] = true; 44 settings['fullscreen_editor_id'] = window.opener.tinyMCE.activeEditor.id;44 settings['fullscreen_editor_id'] = oeID; 45 45 settings['theme_advanced_resizing'] = false; 46 46 settings['strict_loading_mode'] = true; 47 47 48 48 settings.save_onsavecallback = function() { 49 window.opener.tinyMCE. activeEditor.setContent(tinyMCE.get('fullscreenarea').getContent({format : 'raw'}), {format : 'raw'});50 window.opener.tinyMCE. activeEditor.execCommand('mceSave');49 window.opener.tinyMCE.get(oeID).setContent(tinyMCE.get('fullscreenarea').getContent({format : 'raw'}), {format : 'raw'}); 50 window.opener.tinyMCE.get(oeID).execCommand('mceSave'); 51 51 window.close(); 52 52 }; … … 57 57 58 58 function moveContent() { 59 window.opener.tinyMCE. activeEditor.setContent(tinyMCE.activeEditor.getContent());59 window.opener.tinyMCE.get(oeID).setContent(tinyMCE.activeEditor.getContent()); 60 60 } 61 61 … … 79 79 var e = document.getElementById('fullscreenarea'), vp, ed, ow, oh, dom = tinymce.DOM; 80 80 81 e.value = window.opener.tinyMCE. activeEditor.getContent();81 e.value = window.opener.tinyMCE.get(oeID).getContent(); 82 82 83 83 vp = dom.getViewPort();
Note: See TracChangeset
for help on using the changeset viewer.