• Plugin combo (WP 3.2.1 / TinyMCE-Advanced 3.4.2.1) is not working. Only limited HTML markups show. No WYSIWYG interface shows.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Same here. What WordPress version, theme and version, and other plug-ins are you using?

    Me too and I do believe it’s the WP upgrade that’s caused it as I have a few sites – one that I’ve not upgraded yet and TinyMCE Advanced still works on that one.

    Any solutions would be wonderful!

    @knappen + @michaelisc + @swoledge:

    Just an FYI… I’m running that same combination of versions — but am not experiencing any of the issues you’re reporting. My guess is that it’s a conflict with another plugin that you all have in common.

    Good luck…

    same issue here

    I have WP 3.2.1 and TinyMCE-Advanced 3.4.2.1

    and TinyMCE is my only active plug-in !

    same hear…I love this plugin and use it for other sites, but this was my first time uploading new version with 3.2.1

    It just doesn’t work. No change at all to the editor??

    Same problem here too!

    Plugin Author Andrew Ozz

    (@azaozz)

    Could you check for any JS errors in your browsers error console? In FF it would be better to install the Firebug addon, in Chrome and Safati right-click on the screen and select “Inspect element”, in IE8+ hit F12 on your keyboard. After that reload the page and check the console.

    That’s great Andrew, but what do I do if there are errors? I’ve checked on both Firebug and Chrome, and there does seem to be a couple of errors I think? But not sure what to do about them (I’m not that ‘techy’)

    Same problem for me using WP 3.2.1 and TinyMCE Advanced 3.4.2.1
    Here is the error from the console (Chrome)
    Uncaught TypeError: Cannot call method ‘getLength’ of null wp-tinymce.php:4

    Andrew, I’m not getting any errors in Firefox. This is the output from clicking the ‘Add Table’ button, but all I’m getting is a blank popup.

    --ed42d691bbae9596
    Bag: 489|421|-1|200|text/bag-manifest|7200
    
    0:https://abasketballacademy.com../../tiny_mce_popup.js?ver=342
    1:https://abasketballacademy.com../../utils/mctabs.js?ver=342
    2:https://abasketballacademy.com../../utils/form_utils.js?ver=342
    3:https://abasketballacademy.com../../utils/validate.js?ver=342
    4:https://abasketballacademy.com../../utils/editable_selects.js?ver=342
    5:https://abasketballacademy.com/wp-content/plugins/tinymce-advanced/mce/table/js/table.js?ver=342
    
    --ed42d691bbae9596
    Bag: 56|0|0|400|text/html|7200
    
    --ed42d691bbae9596
    Bag: 56|0|1|400|text/html|7200
    
    --ed42d691bbae9596
    Bag: 56|0|2|400|text/html|7200
    
    --ed42d691bbae9596
    Bag: 56|0|3|400|text/html|7200
    
    --ed42d691bbae9596
    Bag: 56|0|4|400|text/html|7200
    
    --ed42d691bbae9596
    Bag: 11040|10970|5|200|text/javascript|14400
    
    tinyMCEPopup.requireLangPack();var action,orgTableWidth,orgTableHeight,dom=tinyMCEPopup.editor.dom;function insertTable(){var formObj=document.forms[0];var inst=tinyMCEPopup.editor,dom=inst.dom;var cols=2,rows=2,border=0,cellpadding=-1,cellspacing=-1,align,width,height,className,caption,frame,rules;var html='',capEl,elm;var cellLimit,rowLimit,colLimit;tinyMCEPopup.restoreSelection();if(!AutoValidator.validate(formObj)){tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ')+'.');return false;}
    elm=dom.getParent(inst.selection.getNode(),'table');cols=formObj.elements['cols'].value;rows=formObj.elements['rows'].value;border=formObj.elements['border'].value!=""?formObj.elements['border'].value:0;cellpadding=formObj.elements['cellpadding'].value!=""?formObj.elements['cellpadding'].value:"";cellspacing=formObj.elements['cellspacing'].value!=""?formObj.elements['cellspacing'].value:"";align=getSelectValue(formObj,"align");frame=getSelectValue(formObj,"tframe");rules=getSelectValue(formObj,"rules");width=formObj.elements['width'].value;height=formObj.elements['height'].value;bordercolor=formObj.elements['bordercolor'].value;bgcolor=formObj.elements['bgcolor'].value;className=getSelectValue(formObj,"class");id=formObj.elements['id'].value;summary=formObj.elements['summary'].value;style=formObj.elements['style'].value;dir=formObj.elements['dir'].value;lang=formObj.elements['lang'].value;background=formObj.elements['backgroundimage'].value;caption=formObj.elements['caption'].checked;cellLimit=tinyMCEPopup.getParam('table_cell_limit',false);rowLimit=tinyMCEPopup.getParam('table_row_limit',false);colLimit=tinyMCEPopup.getParam('table_col_limit',false);if(colLimit&&cols>colLimit){tinyMCEPopup.alert(inst.getLang('table_dlg.col_limit').replace(/\{\$cols\}/g,colLimit));return false;}else if(rowLimit&&rows>rowLimit){tinyMCEPopup.alert(inst.getLang('table_dlg.row_limit').replace(/\{\$rows\}/g,rowLimit));return false;}else if(cellLimit&&cols*rows>cellLimit){tinyMCEPopup.alert(inst.getLang('table_dlg.cell_limit').replace(/\{\$cells\}/g,cellLimit));return false;}
    if(action=="update"){dom.setAttrib(elm,'cellPadding',cellpadding,true);dom.setAttrib(elm,'cellSpacing',cellspacing,true);dom.setAttrib(elm,'border',border);dom.setAttrib(elm,'align',align);dom.setAttrib(elm,'frame',frame);dom.setAttrib(elm,'rules',rules);dom.setAttrib(elm,'class',className);dom.setAttrib(elm,'style',style);dom.setAttrib(elm,'id',id);dom.setAttrib(elm,'summary',summary);dom.setAttrib(elm,'dir',dir);dom.setAttrib(elm,'lang',lang);capEl=inst.dom.select('caption',elm)[0];if(capEl&&!caption)
    capEl.parentNode.removeChild(capEl);if(!capEl&&caption){capEl=elm.ownerDocument.createElement('caption');if(!tinymce.isIE)
    capEl.innerHTML='<br data-mce-bogus="1"/>';elm.insertBefore(capEl,elm.firstChild);}
    if(width&&inst.settings.inline_styles){dom.setStyle(elm,'width',width);dom.setAttrib(elm,'width','');}else{dom.setAttrib(elm,'width',width,true);dom.setStyle(elm,'width','');}
    dom.setAttrib(elm,'borderColor','');dom.setAttrib(elm,'bgColor','');dom.setAttrib(elm,'background','');if(height&&inst.settings.inline_styles){dom.setStyle(elm,'height',height);dom.setAttrib(elm,'height','');}else{dom.setAttrib(elm,'height',height,true);dom.setStyle(elm,'height','');}
    if(background!='')
    elm.style.backgroundImage="url('"+ background+"')";else
    elm.style.backgroundImage='';if(bordercolor!=""){elm.style.borderColor=bordercolor;elm.style.borderStyle=elm.style.borderStyle==""?"solid":elm.style.borderStyle;elm.style.borderWidth=border==""?"1px":border;}else
    elm.style.borderColor='';elm.style.backgroundColor=bgcolor;elm.style.height=getCSSSize(height);inst.addVisual();inst.nodeChanged();inst.execCommand('mceEndUndoLevel');if(formObj.width.value!=orgTableWidth||formObj.height.value!=orgTableHeight)
    inst.execCommand('mceRepaint');tinyMCEPopup.close();return true;}
    html+='<table';html+=makeAttrib('id',id);html+=makeAttrib('border',border);html+=makeAttrib('cellpadding',cellpadding);html+=makeAttrib('cellspacing',cellspacing);html+=makeAttrib('data-mce-new','1');if(width&&inst.settings.inline_styles){if(style)
    style+='; ';if(/^[0-9\.]+$/.test(width))
    width+='px';style+='width: '+ width;}else
    html+=makeAttrib('width',width);html+=makeAttrib('align',align);html+=makeAttrib('frame',frame);html+=makeAttrib('rules',rules);html+=makeAttrib('class',className);html+=makeAttrib('style',style);html+=makeAttrib('summary',summary);html+=makeAttrib('dir',dir);html+=makeAttrib('lang',lang);html+='>';if(caption){if(!tinymce.isIE)
    html+='<caption><br data-mce-bogus="1"/></caption>';else
    html+='<caption></caption>';}
    for(var y=0;y<rows;y++){html+="<tr>";for(var x=0;x<cols;x++){if(!tinymce.isIE)
    html+='<td><br data-mce-bogus="1"/></td>';else
    html+='<td></td>';}
    html+="</tr>";}
    html+="</table>";if(inst.settings.fix_table_elements){var patt='';inst.focus();inst.selection.setContent('<br class="_mce_marker" />');tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','),function(n){if(patt)
    patt+=',';patt+=n+' ._mce_marker';});tinymce.each(inst.dom.select(patt),function(n){inst.dom.split(inst.dom.getParent(n,'h1,h2,h3,h4,h5,h6,p'),n);});dom.setOuterHTML(dom.select('br._mce_marker')[0],html);}else
    inst.execCommand('mceInsertContent',false,html);tinymce.each(dom.select('table[data-mce-new]'),function(node){var td=dom.select('td',node);try{inst.selection.select(td[0],true);inst.selection.collapse();}catch(ex){}
    dom.setAttrib(node,'data-mce-new','');});inst.addVisual();inst.execCommand('mceEndUndoLevel');tinyMCEPopup.close();}
    function makeAttrib(attrib,value){var formObj=document.forms[0];var valueElm=formObj.elements[attrib];if(typeof(value)=="undefined"||value==null){value="";if(valueElm)
    value=valueElm.value;}
    if(value=="")
    return"";value=value.replace(/&/g,'&');value=value.replace(/\"/g,'&quot;');value=value.replace(/</g,'<');value=value.replace(/>/g,'>');return' '+ attrib+'="'+ value+'"';}
    function init(){tinyMCEPopup.resizeToInnerSize();document.getElementById('backgroundimagebrowsercontainer').innerHTML=getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');document.getElementById('backgroundimagebrowsercontainer').innerHTML=getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');document.getElementById('bordercolor_pickcontainer').innerHTML=getColorPickerHTML('bordercolor_pick','bordercolor');document.getElementById('bgcolor_pickcontainer').innerHTML=getColorPickerHTML('bgcolor_pick','bgcolor');var cols=2,rows=2,border=tinyMCEPopup.getParam('table_default_border','0'),cellpadding=tinyMCEPopup.getParam('table_default_cellpadding',''),cellspacing=tinyMCEPopup.getParam('table_default_cellspacing','');var align="",width="",height="",bordercolor="",bgcolor="",className="";var id="",summary="",style="",dir="",lang="",background="",bgcolor="",bordercolor="",rules="",frame="";var inst=tinyMCEPopup.editor,dom=inst.dom;var formObj=document.forms[0];var elm=dom.getParent(inst.selection.getNode(),"table");action=tinyMCEPopup.getWindowArg('action');if(!action)
    action=elm?"update":"insert";if(elm&&action!="insert"){var rowsAr=elm.rows;var cols=0;for(var i=0;i<rowsAr.length;i++)
    if(rowsAr[i].cells.length>cols)
    cols=rowsAr[i].cells.length;cols=cols;rows=rowsAr.length;st=dom.parseStyle(dom.getAttrib(elm,"style"));border=trimSize(getStyle(elm,'border','borderWidth'));cellpadding=dom.getAttrib(elm,'cellpadding',"");cellspacing=dom.getAttrib(elm,'cellspacing',"");width=trimSize(getStyle(elm,'width','width'));height=trimSize(getStyle(elm,'height','height'));bordercolor=convertRGBToHex(getStyle(elm,'bordercolor','borderLeftColor'));bgcolor=convertRGBToHex(getStyle(elm,'bgcolor','backgroundColor'));align=dom.getAttrib(elm,'align',align);frame=dom.getAttrib(elm,'frame');rules=dom.getAttrib(elm,'rules');className=tinymce.trim(dom.getAttrib(elm,'class').replace(/mceItem.+/g,''));id=dom.getAttrib(elm,'id');summary=dom.getAttrib(elm,'summary');style=dom.serializeStyle(st);dir=dom.getAttrib(elm,'dir');lang=dom.getAttrib(elm,'lang');background=getStyle(elm,'background','backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)",'gi'),"$1");formObj.caption.checked=elm.getElementsByTagName('caption').length>0;orgTableWidth=width;orgTableHeight=height;action="update";formObj.insert.value=inst.getLang('update');}
    addClassesToList('class',"table_styles");TinyMCE_EditableSelects.init();selectByValue(formObj,'align',align);selectByValue(formObj,'tframe',frame);selectByValue(formObj,'rules',rules);selectByValue(formObj,'class',className,true,true);formObj.cols.value=cols;formObj.rows.value=rows;formObj.border.value=border;formObj.cellpadding.value=cellpadding;formObj.cellspacing.value=cellspacing;formObj.width.value=width;formObj.height.value=height;formObj.bordercolor.value=bordercolor;formObj.bgcolor.value=bgcolor;formObj.id.value=id;formObj.summary.value=summary;formObj.style.value=style;formObj.dir.value=dir;formObj.lang.value=lang;formObj.backgroundimage.value=background;updateColor('bordercolor_pick','bordercolor');updateColor('bgcolor_pick','bgcolor');if(isVisible('backgroundimagebrowser'))
    document.getElementById('backgroundimage').style.width='180px';if(action=="update"){formObj.cols.disabled=true;formObj.rows.disabled=true;}}
    function changedSize(){var formObj=document.forms[0];var st=dom.parseStyle(formObj.style.value);var height=formObj.height.value;if(height!="")
    st['height']=getCSSSize(height);else
    st['height']="";formObj.style.value=dom.serializeStyle(st);}
    function changedBackgroundImage(){var formObj=document.forms[0];var st=dom.parseStyle(formObj.style.value);st['background-image']="url('"+ formObj.backgroundimage.value+"')";formObj.style.value=dom.serializeStyle(st);}
    function changedBorder(){var formObj=document.forms[0];var st=dom.parseStyle(formObj.style.value);if(formObj.border.value!=""&&formObj.bordercolor.value!="")
    st['border-width']=formObj.border.value+"px";formObj.style.value=dom.serializeStyle(st);}
    function changedColor(){var formObj=document.forms[0];var st=dom.parseStyle(formObj.style.value);st['background-color']=formObj.bgcolor.value;if(formObj.bordercolor.value!=""){st['border-color']=formObj.bordercolor.value;if(!st['border-width'])
    st['border-width']=formObj.border.value==""?"1px":formObj.border.value+"px";}
    formObj.style.value=dom.serializeStyle(st);}
    function changedStyle(){var formObj=document.forms[0];var st=dom.parseStyle(formObj.style.value);if(st['background-image'])
    formObj.backgroundimage.value=st['background-image'].replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)",'gi'),"$1");else
    formObj.backgroundimage.value='';if(st['width'])
    formObj.width.value=trimSize(st['width']);if(st['height'])
    formObj.height.value=trimSize(st['height']);if(st['background-color']){formObj.bgcolor.value=st['background-color'];updateColor('bgcolor_pick','bgcolor');}
    if(st['border-color']){formObj.bordercolor.value=st['border-color'];updateColor('bordercolor_pick','bordercolor');}}
    tinyMCEPopup.onInit.add(init);
    --ed42d691bbae9596--
    djblurb

    (@djblurb)

    I could not get WYSIWYG working in WordPress 3.2.1. It had worked in other versions, but I had turned it off because of issues (which I can’t recall because I’m old). I wanted to develop a site with WYSIWYG and this issue was driving me bananas. Here’s what I found.

    In the 3.2.1 distribution, TinyMCE does not have “en.js” in a couple of locations. Looks like the 3.2.1 distro makes calls to the wrong files?

    To remedy this situation, I manually duplicated a file named “wp-langs-en.js” and renamed it “en.js” in two locations. The file “wp-langs-en.js” existed in both these directories, so I just duplicated the existing one and renamed it. Here are the locations:

    1) /wp-includes/js/tinymce/langs/
    2) /wp-includes/js/tinymce/themes/advanced/langs/

    That’s how I got it working. I have no idea where the calls for en.js are coming from as in every WordPress install I’ve copied, where there is a “lang” directory in tinymce, the lang files are named “wp-langs-en.js”.

    Zach

    (@roogen)

    I tried doing what djblurb described, but it didn’t fix the translation problem for me.

    philipdj

    (@philipdj)

    I had problems too upgrading to 3.2.1. No visual editing anymore. I installed Firebug in FF8 and was given two errors regarding “en.js”, a tinymce javascript file. It seems the code is trying to reach “en.js” at two locations : wordpress\wp-includes\js\tinymce\themes\advanced\langs\en.js and wordpress\wp-includes\js\tinymce\langs\en.js. I copied “wp-langs-en.js” sitting in the latter folder to the other locations and the wysiwyg editor came to life again. Probably the name and location of “wp-langs-en.js” is wrongly programmed somewhere in the code. Anybody else resolving the problem with the above ?

    djblurb described it similarly.

    Thanks! Solved!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘WP 3.2.1 TinyMCE-Advanced 3.4.2.1 = BROKEN’ is closed to new replies.