Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

TinyMCE Table styles problems after upgrade to 7.19

Vote:
 

I need to put our own class in the table tool in tinymce. It worked well in 7.14 with this code :

[TinyMCEPluginNonVisualAttribute(
AlwaysEnabled = true,
PlugInName = "TinyMCESettings",
DisplayName = "Init options",
Description = "Init options for the HTML editor",
EditorInitConfigurationOptions = @"{
paste_auto_cleanup_on_paste : true,
theme_advanced_styles : ""Randig=classname;test= class1 class2"",
theme_advanced_resizing : false }")]
public class DefaultTinyMCESettings : PropertySettings

But this stopped to work after upgrade to 7.19.

You can now add the css classes in the editor.css BUT this doesn't work if you have two css classes for the same editmenuname.

So I've tried this :

[TinyMCEPluginNonVisualAttribute(
AlwaysEnabled = true,
PlugInName = "table",
DisplayName = "Init options",
Description = "Init options for the HTML editor",
EditorInitConfigurationOptions = @"{
table_styles : ""Header 1=header1;Header 2=header2;Header 3=header3"",
table_cell_styles : ""Header 1=header1;Header 2=header2;Header 3=header3;Table Cell=tableCel1"",
table_row_styles : ""Header 1=header1;Header 2=headr2;Header 3=header3;Table Row=tableRow1"",
table_cell_limit : 100,
table_row_limit : 5,
table_col_limit : 5}")]
public class TableEditorNonVisualPlugin

It should work but it doesn't, seems that only " theme_advanced_styles" is accepted.

#119611
Mar 31, 2015 14:57
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.