Try our conversational search powered by Generative AI!

How to get custom classes to TinyMCE table plugin's class menu



I'm trying to customize the class menu available in TinyMCE table plugin. I tried using empty .cs class with attribute TinyMCEPluginNonVisual:

    [TinyMCEPluginNonVisual(PlugInName = "CustomTinyMCESettings", 
                            DisplayName = "Init options", 
                            Description = "Custom editor init options.",
                            AlwaysEnabled = true,
                            EditorInitConfigurationOptions = "{ table_styles: 'Table=table;TableStriped=tableStriped' }")]
    public class CustomTinyMCESettings

    But without success. Does anyone have working solution to this? I've successfully used class attribute similar the one above in EPiServer 6 projects. But now I did not get any effect with this solution, menu is populated with some epi prefixed class + our custom classes from editorsstyles.css created for the "style" menu in editor toolbar.

Aug 06, 2013 15:46

Good morning Janne,

You don't need to use a plugin, you can actually do it in the Editors Css stylesheet itself.  Take a look at this article.

Hope this helps

Edited, Aug 07, 2013 15:56

use the above links, hope helpful to you.

Aug 12, 2013 4:56
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.