-
+ 41CFF11C5190893B61222CFA776939D58F5D481FAE60659663ABFEB1C659A46BEDE24C05BA9B2CD782981ED9FEB33D37A99DA76CB0C1BEF23FE33B4B538E9631
mp-wp/wp-includes/js/tinymce/plugins/paste/js/pasteword.js
(0 . 0)(1 . 56)
122305 tinyMCEPopup.requireLangPack();
122306
122307 function saveContent() {
122308 var html = document.getElementById("frmData").contentWindow.document.body.innerHTML;
122309
122310 if (html == ''){
122311 tinyMCEPopup.close();
122312 return false;
122313 }
122314
122315 tinyMCEPopup.execCommand('mcePasteWord', false, html);
122316 tinyMCEPopup.close();
122317 }
122318
122319 function onLoadInit() {
122320 tinyMCEPopup.resizeToInnerSize();
122321
122322 // Fix for endless reloading in FF
122323 window.setTimeout(createIFrame, 10);
122324 }
122325
122326 function createIFrame() {
122327 document.getElementById('iframecontainer').innerHTML = '<iframe id="frmData" name="frmData" class="sourceIframe" src="blank.htm" height="280" width="400" frameborder="0" style="background-color:#FFFFFF; width:100%;" dir="ltr" wrap="soft"></iframe>';
122328 }
122329
122330 var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
122331
122332 function initIframe(doc) {
122333 var dir = tinyMCEPopup.editor.settings.directionality;
122334
122335 doc.body.dir = dir;
122336
122337 // Remove Gecko spellchecking
122338 if (tinymce.isGecko)
122339 doc.body.spellcheck = tinyMCEPopup.getParam("gecko_spellcheck");
122340
122341 resizeInputs();
122342 }
122343
122344 function resizeInputs() {
122345 if (!tinymce.isIE) {
122346 wHeight = self.innerHeight - 80;
122347 wWidth = self.innerWidth - 18;
122348 } else {
122349 wHeight = document.body.clientHeight - 80;
122350 wWidth = document.body.clientWidth - 18;
122351 }
122352
122353 var elm = document.getElementById('frmData');
122354 if (elm) {
122355 elm.style.height = Math.abs(wHeight) + 'px';
122356 elm.style.width = Math.abs(wWidth) + 'px';
122357 }
122358 }
122359
122360 tinyMCEPopup.onInit.add(onLoadInit);