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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Tiny_mce customizing the table - question


Go to End


1171 Views

Avatar
Tkop

28 Posts

25 July 2007 at 7:49am

Edited: 25/07/2007 7:56am

I am reading the documentation on tiny_mce and I
should be able to customize the table setting so I can set the
table, row, and cell class. Currently there is only mceContentBody.

I believe I should be adding to the tinyMCE_init() function.
table_styles : "Price List=pricetable",
table_row_styles : "Title=titlehead;Odd=trOdd;Even=trEven",
table_cell_styles : "Name=namethl; Date=datethr; Var1=tdvar1; Var2=tdvar2; Var3=tdvar3; Var4=tdvar4",

Doing a grep for "tinyMCE_init" I can only find it in "jsparty/tiny_mce/tiny_init.js" under
a function sapphire_tinymce_init().
There are 2 versions of tinyMCE_init() there but by looking at the buttons lines
they do not correspond to the actual buttons (the order in the first and the buttons themselves in the second) and when I add the table styles, the styles never show up in the drop downs/poups.

Is there another place that I should be making these changes? and if so where?
If this is the correct place, why are there two tinyMCE_init()?