TinyMCE高级主题-它在哪里?

TinyMCE高级主题-它在哪里?,tinymce,tinymce-4,Tinymce,Tinymce 4,我正在创建一个下拉列表,其中包含一个类列表,这样我的用户就可以将它们应用到链接、段落等。我已经在很多地方阅读了advanced主题支持这个现成的主题,但我找不到从哪里下载这个主题 我怀疑高级主题只是Wordpress,因为我发现它包含在Wordpress下载中,但格式不允许我使用它 我遗漏了什么吗?好的,我找到了困惑所在 TinyMCE版本3.x包含了高级主题,但我使用的4.0没有附带它。我确实下载了3.x并尝试了4.0的高级主题,但它不兼容。Wordpress似乎与3.x一起提供,这就是为什么

我正在创建一个下拉列表,其中包含一个类列表,这样我的用户就可以将它们应用到链接、段落等。我已经在很多地方阅读了
advanced
主题支持这个现成的主题,但我找不到从哪里下载这个主题

我怀疑高级主题只是Wordpress,因为我发现它包含在Wordpress下载中,但格式不允许我使用它


我遗漏了什么吗?

好的,我找到了困惑所在

TinyMCE版本3.x包含了
高级
主题,但我使用的4.0没有附带它。我确实下载了3.x并尝试了4.0的高级主题,但它不兼容。Wordpress似乎与3.x一起提供,这就是为什么我认为它是Wordpress唯一的选项

了解更多信息(希望对其他人有所帮助):

现在看来,您必须对TinyMCE编辑器使用
格式样式
自定义格式
选项,以便用户能够选择样式。我已经编写了一些代码来解析我的CSS文件,查找所有
H2、2等
P
A
类,并填充这些选项。这条路很长,但效果很好。遗憾的是没有现成的程序

最后,我使用了以下代码(C#-复制粘贴这不起作用,但它应该能很好地指导操作):


有关
style\u格式
选项的更多信息可以在这里找到:

@Thariama-谢谢,我发现了与此混淆的地方,并在下面给出了答案。
//Declared so we can deserialise into JSON
public class CustomFormat
{
    public string title;
    public string selector;
    public string classes;
}

private void BuildTinyMCECSS()
{
    List<string> AllowedTags = new List<string> { "p", "a", "h1", "h2", "h3", "h4", "h5", "h6" };
    CssParser StyleSheet = new CssParser();
    StyleSheet.AddStyleSheet("MyPath/Styles.css");

    //1: Only in our allowed tags. 2: Isn't a pseudo class. 3: Is a class of one of the allowed tags.
    foreach (KeyValuePair<string, StyleClass> Style in StyleSheet.Styles.Where(n => AllowedTags.Any(a => n.Key.StartsWith(a) && !n.Key.Contains(':') && n.Key.Contains('.'))))
    {
        CustomFormat CF = new CustomFormat();
        CF.title = Style.Key;
        CF.selector = Style.Key.Substring(0, Str.IndexOf('.'));
        CF.classes = Style.Key.Substring(Style.Key.IndexOf('.') + 1);

            //Note: CCUtils is a static class I use for utilities. Any code to deserialise will work
        string JS = String.Format("{1},", Style.Key, CCUtils.SerializeToStringJSON(CF, typeof(CustomFormat)));
        Session["JS"] += JS;
    }
    //Remove the spare comma at the end (ie won't like it)
    Session["JS"] = Session["JS"].ToString().Substring(0, Session["JS"].ToString().LastIndexOf(','));
}
style_formats:
[{
    title: "Headers",
    items: [{title: "Header 1",format: "h1"}, {title: "Header 2",format: "h2"}, {title: "Header 3",format: "h3"}, {title: "Header 4",format: "h4"}, {title: "Header 5",format: "h5"}, {title: "Header 6",format: "h6"}]}, 
            {title: "Inline",items: [{title: "Bold",icon: "bold",format: "bold"}, {title: "Italic",icon: "italic",format: "italic"}, 
            {title: "Underline",icon: "underline",format: "underline"}, {title: "Strikethrough",icon: "strikethrough",format: "strikethrough"}, {title: "Superscript",icon: "superscript",format: "superscript"}, {title: "Subscript",icon: "subscript",format: "subscript"}, {title: "Code",icon: "code",format: "code"}]}, 
            {title: "Blocks",items: [{title: "Paragraph",format: "p"}, {title: "Blockquote",format: "blockquote"}, {title: "Div",format: "div"}, {title: "Pre",format: "pre"}]}, 
            {title: "Alignment",items: [{title: "Left",icon: "alignleft",format: "alignleft"}, {title: "Center",icon: "aligncenter",format: "aligncenter"}, {title: "Right",icon: "alignright",format: "alignright"}, {title: "Justify",icon: "alignjustify",format: "alignjustify"}]}, 
            {
    title: "Classes", items: [<%= Session["JS"] %>]
}]