Make WordPress Core


Ignore:
Timestamp:
06/19/2008 04:55:50 PM (17 years ago)
Author:
ryan
Message:

TinyMCE 3.1.0.1 from azaozz. fixes #7153 #7148 #7128

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm

    r8047 r8127  
    44    <title></title>
    55    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    6     <script type="text/javascript" src="../../tiny_mce.js?ver=3091"></script>
     6    <script type="text/javascript" src="../../tiny_mce.js?ver=3101"></script>
    77    <script type="text/javascript">
    88        function patchCallback(settings, key) {
     
    1111        }
    1212
    13         var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings;
     13        var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings, oeID = window.opener.tinyMCE.activeEditor.id;
    1414
    1515        // Clone array
     
    4242        settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI();
    4343        settings['fullscreen_is_enabled'] = true;
    44         settings['fullscreen_editor_id'] = window.opener.tinyMCE.activeEditor.id;
     44        settings['fullscreen_editor_id'] = oeID;
    4545        settings['theme_advanced_resizing'] = false;
    4646        settings['strict_loading_mode'] = true;
    4747
    4848        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');
    5151            window.close();
    5252        };
     
    5757
    5858        function moveContent() {
    59             window.opener.tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent());
     59            window.opener.tinyMCE.get(oeID).setContent(tinyMCE.activeEditor.getContent());
    6060        }
    6161
     
    7979            var e = document.getElementById('fullscreenarea'), vp, ed, ow, oh, dom = tinymce.DOM;
    8080
    81             e.value = window.opener.tinyMCE.activeEditor.getContent();
     81            e.value = window.opener.tinyMCE.get(oeID).getContent();
    8282
    8383            vp = dom.getViewPort();
Note: See TracChangeset for help on using the changeset viewer.