• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

TinyMCE Issue - Beta 2 -> Beta 3 Upgrade

#1
Hi guys,

I currently have XenForo installed on two different domains, one is my large live domain, and the second is one I am working on. When I upgraded both sites to Beta 3, I had an issue on only 1 site, which is kind of why this is strange.

On the large site, the TinyMCE editor was not rendering in the message quick reply area of my custom style. It was working everywhere else though.

Here are the symptoms.
1) Beta 3 - Large Site - TinyMCE editor not working on custom style.
2) Beta 3 - Large Site - TinyMCE editor IS working on default style.
3) Beta 3 - New Site - TinyMCE editor IS working on default AND style exported from Large Site and Imported.

I eventually downgraded the large site back to Beta 2.

What is curious is the actual source is different. The places where it was working, the TinyMCE editor was displaying in an IFRAME, but it wasn't in my custom style. At that point I thought it must be the style, but it was fine (and so was the source) when I imported it into the second site.

---

Anyway, I would like to upgrade to Beta 3, but don't want to redo the style. Any ideas where to start troubleshooting?

Shaun
 

Jake Bunce

XenForo moderator
Staff member
#2
Despite the custom style working fine on the second site, I would still be inclined to troubleshoot the custom style. Try systematically reverting any custom templates in the style to see if you can identify a particular template that is causing the problem.

Also try disabling any addons you have installed:

Admin CP -> Home -> List Add-ons -> Disable (in the menu on the right)

This might also be a file problem. The tinymce editor has a lot of javascript files in the js directory.
 
#3
Jake, I did just that.

The issue came down to the $editor (or something similarly named) variable outputting differently on each site. I'm not sure where the editor is SET in the view.

Shaun
 

Jake Bunce

XenForo moderator
Staff member
#4
Were you able to identify a particular template? I might be able to trace back the contents of a particular template.
 

Jake Bunce

XenForo moderator
Staff member
#6
Hmm. I don't have any more insight to offer. But if reverting that template fixes the problem then I would go with that.
 

Jake Bunce

XenForo moderator
Staff member
#10
Also, normally you shouldn't touch the Master Style. That style is only accessible in debug mode. You should turn off debug mode unless you are developing an addon or debugging a problem.
 

Mike

XenForo developer
Staff member
#13
If reverting the customized template fixes it, then I have to surmise there was some sort of issue. After an upgrade, I recommend checking the "outdated templates" page, as well as confirming any issues on a non-modified style.