1
function saveContent() {
2
tinyMCE.setContent(document.getElementById('htmlSource').value);
3
tinyMCE.closeWindow(window);
6
function onLoadInit() {
7
tinyMCEPopup.resizeToInnerSize();
9
// Remove Gecko spellchecking
11
document.body.spellcheck = tinyMCE.getParam("gecko_spellcheck");
13
document.getElementById('htmlSource').value = tinyMCE.getContent(tinyMCE.getWindowArg('editor_id'));
17
if (tinyMCE.getParam("theme_advanced_source_editor_wrap", true)) {
19
document.getElementById('wraped').checked = true;
23
function setWrap(val) {
24
var s = document.getElementById('htmlSource');
28
if (tinyMCE.isGecko || tinyMCE.isOpera) {
30
var n = s.cloneNode(false);
31
n.setAttribute("wrap", val);
32
s.parentNode.replaceChild(n, s);
37
function toggleWordWrap(elm) {
44
var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
46
function resizeInputs() {
47
var el = document.getElementById('htmlSource');
49
if (!tinyMCE.isMSIE) {
50
wHeight = self.innerHeight - 60;
51
wWidth = self.innerWidth - 16;
53
wHeight = document.body.clientHeight - 60;
54
wWidth = document.body.clientWidth - 16;
57
el.style.height = Math.abs(wHeight) + 'px';
58
el.style.width = Math.abs(wWidth) + 'px';