Make WordPress Core


Ignore:
Timestamp:
02/21/2008 09:40:25 PM (17 years ago)
Author:
ryan
Message:

TinyMCE 3.01. Props azaozz. fixes #5944

File:
1 edited

Legend:

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

    r6694 r6959  
    4444        settings['fullscreen_editor_id'] = window.opener.tinyMCE.activeEditor.id;
    4545        settings['theme_advanced_resizing'] = false;
     46        settings['strict_loading_mode'] = true;
     47
     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');
     51            window.close();
     52        };
    4653
    4754        function unloadHandler(e) {
     
    5057
    5158        function moveContent() {
    52             window.opener.tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent({format : 'raw'}));
     59            window.opener.tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent());
    5360        }
    5461
     
    8188<script type="text/javascript">
    8289        var e = document.getElementById('fullscreenarea');
    83         e.value = window.opener.tinyMCE.activeEditor.getContent({format : 'raw'});
    84         settings['width'] = window.innerWidth || document.body.clientWidth;
    85         settings['height'] = (window.innerHeight || document.body.clientHeight) - 18;
     90        e.value = window.opener.tinyMCE.activeEditor.getContent();
     91        settings.width = window.innerWidth || document.body.clientWidth;
     92        settings.height = (window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight) - 18;
    8693        tinyMCE.init(settings);
    8794</script>
Note: See TracChangeset for help on using the changeset viewer.