egroupware/phpgwapi/js/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm
Pim Snel 8b6404cbc2 Add TineMCE, the future htmlArea Replacement. A clean WYSIWYG editor
see tinymce.moxiecode.com/ for more info
2005-06-21 13:12:29 +00:00

44 lines
1.3 KiB
HTML

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript" type="text/javascript" src="../../tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
var settings = new Array();
// Clone array
for (var name in window.opener.tinyMCE.settings)
settings[name] = window.opener.tinyMCE.settings[name];
// Set options
settings['mode'] = 'exact';
settings['elements'] = 'fullscreenarea';
settings['ask'] = false;
settings['setupcontent_callback'] = 'setupContent';
settings['fullscreen_is_enabled'] = true;
settings['fullscreen_editor_id'] = window.opener.tinyMCE.getWindowArg("editor_id");
// Init
tinyMCE.init(settings);
function setupContent(editor_id, body, doc) {
var inst = tinyMCE.getInstanceById(editor_id);
var backInst = window.opener.tinyMCE.getInstanceById(tinyMCE.getParam('fullscreen_editor_id'));
// Setup title
var divElm = document.createElement("div");
divElm.innerHTML = tinyMCELang['lang_fullscreen_title'];
document.title = divElm.innerHTML;
// Get content
inst.getBody().innerHTML = backInst.getBody().innerHTML;
}
</script>
</head>
<body style="margin: 0px; overflow: hidden;" scrolling="no" scroll="no" onload="window.focus();">
<textarea id="fullscreenarea" style="width: 100%; height: 100%"></textarea>
</body>
</html>