+tinyMCEPopup.requireLangPack();
+
function saveContent() {
var html = document.getElementById("frmData").contentWindow.document.body.innerHTML;
tinyMCEPopup.resizeToInnerSize();
// Fix for endless reloading in FF
- window.setTimeout('createIFrame();', 10);
+ window.setTimeout(createIFrame, 10);
}
function createIFrame() {
var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
function initIframe(doc) {
- var dir = tinyMCE.selectedInstance.settings['directionality'];
+ var dir = tinyMCEPopup.editor.settings.directionality;
doc.body.dir = dir;
// Remove Gecko spellchecking
- if (tinyMCE.isGecko)
- doc.body.spellcheck = tinyMCE.getParam("gecko_spellcheck");
+ if (tinymce.isGecko)
+ doc.body.spellcheck = tinyMCEPopup.getParam("gecko_spellcheck");
resizeInputs();
}
function resizeInputs() {
- if (!tinyMCE.isMSIE) {
+ if (!tinymce.isIE) {
wHeight = self.innerHeight - 80;
wWidth = self.innerWidth - 18;
} else {
elm.style.width = Math.abs(wWidth) + 'px';
}
}
+
+tinyMCEPopup.onInit.add(onLoadInit);