Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

tinyMce MSIE problem with table_styles


Reply

1100 Views

Avatar
Tkop

29 August 2007 at 4:08am 28 Posts

I am trying to set different classes for the tables created by
TinyMCE.

In the silverstripe 2.02 release (I don't know about the
other releases) when I add table_styles, table_row_styles, and
table_cell_styles to cms/javascript/tinymce.template.js to set
the class it works fine in Firefox but with Miscrosoft IE version
6 and 7 (I don't know about other versions or browsers). A
two class statements are added. Additionally in MSIE 7 on a
save, silverstripe returns with an internal server error (MSIE 6
allows the save with both classes.

ex.
Firefox --> <table border="0" class="mytbl">
MSIE --> <table class="mytbl" border="0" class="mytbl">

I've tried playing with the tinyMCE code and the silverstripe code
but have not been able to determine where this is actually
being set. I believe it has somthing to do with MSIE use of
className instead of class.

The current tinyMCE download does not have this problem.

Any help would be appreciated