Home
TeamSite
anyone know how to trouble shoot TinyMCE issues
ttriemst
Hi all,
I have been working for many days trying to figure why I can't get TinyMCE to render properly when using it inside a Datum, and I am hoping that someone in the developer community might have a tip or trick on how to do this. I am working on upgrading our install of TeamSite/SitePublisher. I am using the approach of doing a clean install of the app, and then applying all of our customizations. The only thing I have left is to figure out how to get our customized TinyMCE to render. When I try to create or edit a component that is a Datum with a TinyMCE editor, it just sits there with the wheel spinning saying "Loading Editor" (please see the attached screen shot). I have traversed the file structure up and down, comparing it to my production instance, and I just can't seem too figure out what is missing.
The really frustrating part is that there is no logging what so ever I can find. There just does not seem to be anything being generated in any logs to help assist.
Does anyone have thoughts on how to troubleshoot or where to look for assistance?
Thanks
TS 7.2.1
Solaris 10
Find more posts tagged with
Comments
Rick Poulin
Javascript problems don't get logged anywhere. Use Firebug or similar to capture and diagnose the issue (make sure your Firebug console is open before you get to that page, so that you can capture initialization problems).
ttriemst
Thanks rpoulin for the idea. I did download and install firebug, and I now at least have some visibility to what is going on. I have attached a screenshot with the 2 errors being shown. I have done some searching on both devnet and the support site for the specific errors, and of course I can't seem to locate anything.
I just wanted to see if anyone else has seen this and has ideas?
Thanks again all.
Sorry, seem to be having issues getting a screen shot to upload. The errors are:
tinyMCE.addPlugin is not a function
tinyMCE.importPluginLanguagePack is not a function
Migrateduser
I don't see any attachments on your second post. You indicated that you were going to attach the 2 error messages.
Also, what browsers and versions is this affecting? Does it work in IE7 and FireFox 4? If you're using FireFox 5 you are using an unsupported browser.
Rick Poulin
tinyMCE.addPlugin is not a function
tinyMCE.importPluginLanguagePack is not a function
In TS6.7, TinyMCE was version 2.x. In TS7.x, it's TinyMCE 3.x. There have been a number of changes, including the API for plugins. You're trying to use the 2.x API on TinyMCE 3.x. You'll have to migrate your plugins. There's a migration guide on moxiecode's website, but see here:
http://tinymce.moxiecode.com/wiki.php/Creating_a_plugin
Namely, your two commands should now be
tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin);
tinymce.PluginManager.requireLangPack('example');