2015-04-23 68 views
0

我想用這個選項初始化tinymce,但是我看不到圖像選項中的圖像類列表。不知道它有什麼問題。Tinymce image_class_list不工作​​

我的TinyMCE的版本是4.0

以下是圖像類列表中選擇文檔http://www.tinymce.com/wiki.php/Configuration:image_class_list

tinymce.init({ 
selector: "textarea", 
theme: "modern", 
height : 300, 
    entity_encoding : "raw", 
    remove_linebreaks : true, 
    apply_source_formatting : false, 
    force_p_newlines : false, 
    cleanup : true, 
plugins: [ 
    "coreimage advlist autolink lists link image charmap print preview hr anchor pagebreak", 
    "searchreplace wordcount visualblocks visualchars code fullscreen", 
    "insertdatetime media nonbreaking save table contextmenu directionality", 
    "emoticons template paste textcolor" 
], 

templates : [ 
    { 
      title: "2 Column 3-1 ve 3-2", 
      url: "/adm/tpl/tools/tinymce/bootstrap_colums_3_1_3_2.html", 
      description: "Column Templates" 
    }, 
    { 
      title: "2 Column 3-2 ve 3-1", 
      url: "/adm/tpl/tools/tinymce/bootstrap_colums_3_2_3_1.html?22", 
      description: "Column Templates" 
    } 

], 


toolbar1: "template,|,newdocument,|,bold,italic,underline,strikethrough,|,alignleft,aligncenter,alignright,formatselect,fontselect,fontsizeselect", 
toolbar2: "cut,copy,paste,pasteword,|,search,replace,|,undo,redo,charmap,iespell,media,advhr,|,print,|,fullscreen,|,visualchars,nonbreaking,pagebreak,restoredraft", 
toolbar3: "link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime,preview,|,forecolor,backcolor,table", 
image_advtab: true, 
content_css : "/css/bootstrap.min.css", 
image_list : <?php include "myexternallist.php"; ?>, 

image_class_list: [ 
    {title: 'None', value: ''}, 
    {title: 'Image Responsive', value: 'img-responsive'}, 
    {title: 'Image Circle', value: 'img-circle'}, 
    {title: 'Image Rounded', value: 'img-rounded'}, 
    {title: 'Image Thumbnail', value: 'img-thumbnail'} 
] 

});

回答

0

我已經解決了這個問題。這是tinyMce的版本。我將腳本從4更新爲4.1.9,並解決了問題。