November Happy Hour will be moved to Thursday December 5th.
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.
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.