2015-04-27 57 views
0

我已經安裝TinyMCE的v4.1.9的文本編輯器。所以我發現超鏈接和圖像按鈕ARA失蹤,所以我插入插件爲他們兩個,他們都出現,但他們只是出現只有當我添加一個插件(當我添加圖片 - >出現|當我添加超鏈接 - >出現|當我添加兩個,當超鏈接是最後一個,鏈接按鈕出現,圖像消失,如果圖像是最後一個,同樣的事情,圖像按鈕出現和消失的鏈接)。TinyMCE的鏈接和圖像按鈕問題

這裏是我的代碼:

tinymce.init({ 
     selector: "textarea#core", 
     language : 'ar', 
     directionality : 'rtl', 
     plugins: "autoresize", 
     fontsize_formats: "14px", 
     content_css : "css/custom_content.min.css", 
     theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px", 
     font_size_style_values : "10px,12px,13px,14px,16px,18px,20px", 
     plugins: "link", 
     plugins: "image", 
     theme: 'modern' 

幫助,請

回答

0

這是一個正確的答案

tinymce.init({ 
    selector: "textarea#core", 
    theme: "modern", 
    language : 'ar', 
    directionality : 'rtl', 
    plugins: [ 
    "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 colorpicker textpattern" 
    ], 
    toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image", 
    toolbar2: "print preview media | forecolor backcolor emoticons", 
    image_advtab: true, 
    templates: [ 
     {title: 'Test template 1', content: 'Test 1'}, 
     {title: 'Test template 2', content: 'Test 2'} 
    ] 
}); 
+0

這也將是很好的補充解決方案的一小描述。 – tvgemert

+0

謝謝老兄,但我並解決它很久以前:)謝謝你的分享,欣賞吧^ _ ^ –