【问题标题】:Edit TinyMCE style options编辑 TinyMCE 样式选项
【发布时间】:2015-03-19 14:47:17
【问题描述】:

在一个表单上,我使用 TinyMCE 来编辑文本区域。 现在我只想在 TinyMCE 中提供“粗体”、“斜体”和“下划线”选项。 我应该在 tinymce.init(); 中进行哪些设置?

【问题讨论】:

    标签: tinymce


    【解决方案1】:

    参见 tinymce fiddle here

    代码如下:

    tinymce.init({
        selector: "textarea",             // change textareas into tinymce editors
        plugins: [],                      // no additional plugins needed
        toolbar: "bold italic underline", // only those three buttons
        menubar: false                    // no display of the top menubar
    });
    

    【讨论】:

    • @JasperPoppe:在这种情况下,您应该接受答案:)
    猜你喜欢
    • 1970-01-01
    • 2012-02-17
    • 2016-08-21
    • 2013-06-03
    • 1970-01-01
    • 2023-02-08
    • 1970-01-01
    • 1970-01-01
    • 2011-01-06
    相关资源
    最近更新 更多