问题
In an out of the box Plone 4.1.4 (4113) on a windows server, some clientside problems occur on IE7 (I know...).
- Going to the main site: no problem
- logging in: IE raises a runtime error: Line 505: Expexted identifier, string or number
- Adding content: IE raises a runtime error: Line 505: Expexted identifier, string or number and gives a javascript error complaining that there is no "TinyMCE_config".
This function doesn't work:
- TinyMCE refuses to show it's controls and IE7 gives a Javascript error saying:
The institution is planning the move to IE8, but this is not finalized yet.
FF: no problem Chrome: no problem IE8: no problem
Any ideas (besides moving to a different browser...)?
btw: when trying out TinyMCE on their site, IE7 gives no errors at all...
回答1:
Expexted identifier, string or number means the javascript has an unneeded colon (',') somewhere ( http://devharbor.blogspot.it/2011/10/ie7-and-error-expected-identifier.html )
To debug what it is, follow this guide: javascript debugging in internet explorer
I've used http://getfirebug.com/firebuglite and it worked to find the problem :)
来源:https://stackoverflow.com/questions/9889978/ie7-and-tinymce-with-plone