mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-18 22:13:30 +01:00
44 lines
1.3 KiB
HTML
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>
|