Community Forums

ATutor Bug Reports

Bug in IE 6-7 with TinyMCE with other themes


You must be signed-in to post.

AuthorSubject
 
Page: 1
vegard

Avatar for vegard
Subject: Bug in IE 6-7 with TinyMCE with other themesQuote this post in your reply
hia, I've finally got to upgrade to 1.6.2, and found a bug smile

It is related to your implementation of this:

www.atutor.ca/atutor/mantis/view.php?id=3490, atutor.no/2008/07/adding-styles-tinymce-styles-select-menu

in include/lib/tinymce.inc.php you have referred to the "styles.css" file in whatever theme the user is using.

the problem here is with themes who doesn't have a file called "styles.css" (like my themes), then the reference is false and this causes both IE 6 and IE 7 to crash! you are not able to input anything in the editor anywhere.

..also note that this is a very bad implementation of the functionality in the first place, as the user gets access to all the styles in ATutors internal stylesheet, meaning hundreds of styles, where most of them would break the layout horribly! see the discussion at atutor.no above where we discussed this, and have a look at your demo server to see this in action!

I suggest you create a small and unique CSS file for TinyMCE, like for instance this one:

www2.helsekompetanse.no/atutor/themes/edhopper/css/tinystyles.css

..and also put it outside of the theme folders, like in inlcude/lib/tinystyles.css
Posted: 2009-01-19 09:56:47
cindy

Avatar for cindy
Subject: Re: Bug in IE 6-7 with TinyMCE with other themesQuote this post in your reply
Hi Vegard,

Thanks for reporting. Patch 0010 has been issued for the fix.
Posted: 2009-01-19 11:43:06
vegard

Avatar for vegard
Subject: Re: Bug in IE 6-7 with TinyMCE with other themesQuote this post in your reply
cool, thanks!

but I actually just saw / remembered that you also have to refer to the same CSS file from the theme, as it's now just available to the editor, but not to the ones viewing the content..

..in that case it would be sufficent to just add it to the default theme, and maybe add a note about it in the theme developer documentation!
Posted: 2009-01-19 15:06:41
 
Page: 1

You must be signed-in to post.

Related Articles