Make WordPress Core


Ignore:
Timestamp:
01/31/2008 06:10:46 PM (17 years ago)
Author:
ryan
Message:

TinyMCE 3.0 Final from azaozz. see #5674

File:
1 edited

Legend:

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

    r6689 r6694  
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    12<html xmlns="http://www.w3.org/1999/xhtml">
    23<head>
    3     <title>{$lang_fullscreen_title}</title>
     4    <title></title>
    45    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    56    <script type="text/javascript" src="../../tiny_mce.js"></script>
     
    7071            return false;
    7172        }
    72 
    73         function init() {
    74             var e = document.getElementById('fullscreenarea');
    75             e.value = window.opener.tinyMCE.activeEditor.getContent({format : 'raw'});
    76             settings['width'] = e.clientWidth;
    77             settings['height'] = e.clientHeight;
    78             tinyMCE.init(settings);
    79         }
    8073    </script>
    8174    <base target="_self" />
    8275</head>
    83 <body onload="init();" style="margin:0; overflow:hidden; height:100%;" scrolling="no" scroll="no">
    84 <form onsubmit="doParentSubmit();" style="height: 100%">
     76<body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no">
     77<form onsubmit="doParentSubmit();">
    8578<textarea id="fullscreenarea" style="width:100%; height:100%"></textarea>
    8679</form>
     80
     81<script type="text/javascript">
     82        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;
     86        tinyMCE.init(settings);
     87</script>
     88
    8789</body>
    8890</html>
Note: See TracChangeset for help on using the changeset viewer.