TinyMCE代码无法正常工作

时间:2016-05-11 09:24:25

标签: jquery html tinymce

我有以下代码无效:

 tinymce.init({
selector: "textarea#notice_template",
content_css : '<?php echo($method->baseURL()); ?>/Theme/master_custom.css?' + new Date().getTime(),
theme: "modern",
fontsize_formats: "2pt 4pt 6pt 8pt 10pt 12pt 14pt 18pt 20pt 22pt 24pt 26pt 28pt 30pt 32pt 34pt 36pt",
height: 300
plugins: [
     "advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
     "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
     "save table contextmenu directionality emoticons template paste textcolor filemanager"
     ],

任何帮助表示赞赏

1 个答案:

答案 0 :(得分:2)

您需要在属性"height:300"

之后加上逗号(“,”)
tinymce.init({
    selector: "textarea#notice_template",
    content_css : '<?php echo($method->baseURL()); ?>/Theme/master_custom.css?' + new Date().getTime(),
    theme: "modern",
    fontsize_formats: "2pt 4pt 6pt 8pt 10pt 12pt 14pt 18pt 20pt 22pt 24pt 26pt 28pt 30pt 32pt 34pt 36pt",
    height: 300,
    plugins: [
        "advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
        "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
        "save table contextmenu directionality emoticons template paste textcolor filemanager"
    ],