includes/clientside/tinymce/plugins/fullscreen/fullscreen.htm
changeset 395 fa4c5ecb7c9a
parent 335 67bd3121a12e
child 459 31c23016ab62
equal deleted inserted replaced
394:fbfdcea634a7 395:fa4c5ecb7c9a
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <head>
     3 <head>
     3 	<title>{$lang_fullscreen_title}</title>
     4 	<title></title>
     4 	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
     5 	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
     5 	<script type="text/javascript" src="../../tiny_mce.js"></script>
     6 	<script type="text/javascript" src="../../tiny_mce.js"></script>
     6 	<script type="text/javascript">
     7 	<script type="text/javascript">
     7 		function patchCallback(settings, key) {
     8 		function patchCallback(settings, key) {
     8 			if (settings[key])
     9 			if (settings[key])
    67 
    68 
    68 			window.close();
    69 			window.close();
    69 
    70 
    70 			return false;
    71 			return false;
    71 		}
    72 		}
    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 		}
       
    80 	</script>
    73 	</script>
    81 	<base target="_self" />
    74 	<base target="_self" />
    82 </head>
    75 </head>
    83 <body onload="init();" style="margin:0; overflow:hidden; height:100%;" scrolling="no" scroll="no">
    76 <body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no">
    84 <form onsubmit="doParentSubmit();" style="height: 100%">
    77 <form onsubmit="doParentSubmit();">
    85 <textarea id="fullscreenarea" style="width:100%; height:100%"></textarea>
    78 <textarea id="fullscreenarea" style="width:100%; height:100%"></textarea>
    86 </form>
    79 </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 
    87 </body>
    89 </body>
    88 </html>
    90 </html>