2016-10-04 13 views
0

私はTinymce 3.4.2を使用していますが、Tinymceにいくつかのプラグインを追加すると、デフォルトのHtmlソースエディタが消えました。 Tinymce 3.xにHtmlソースエディタを追加するには?ここでTinymce 3.xにHtmlエディタのソースを追加するには

iはHTMLエディタを追加するには

var tinymce_advanced_options = { 
    mode : "textareas", 
    theme : "advanced", 

    // =========================================== 
    // INCLUDE the PLUGIN 
    // =========================================== 

    plugins : "openmanager, spellchecker, autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave, autoresize", 

    //FILE UPLOAD MODS 
    file_browser_callback: "openmanager", 
    open_manager_upload_path: 'uploads/', 

    // =========================================== 
    // Set LANGUAGE to EN (Otherwise, you have to use plugin's translation file) 
    // =========================================== 

    language : "en", 

    // =========================================== 
    // Put PLUGIN'S BUTTON on the toolbar 
    // ===========================================  

    theme_advanced_buttons1 : "save, |, spellchecker, |, bold, italic, underline, strikethrough, |, justifyleft, justifycenter, justifyright, justifyfull, cut, copy, paste, pastetext, pasteword", 

    theme_advanced_buttons2 : "preview, styleselect, formatselect, fontselect, fontsizeselect", 

    theme_advanced_buttons3 : "openmanager, |, image, |, media, |, bullist,numlist,|, outdent,indent, blockquote, |,undo,redo,|, link,unlink,anchor", 

    theme_advanced_buttons4 : "forecolor,backcolor, |, sub,sup,|, styleprops, |, cite, abbr, acronym, del, ins, |, search, replace, |, codeinsertdate,inserttime", 

    theme_advanced_buttons5 : "tablecontrols,|,hr,removeformat,visualaid", 


    theme_advanced_buttons6 : "insertlayer, moveforward, movebackward, absolute, |, attribs, |, visualchars, nonbreaking, template, pagebreak, restoredraft, cleanup, charmap,emotions, advhr, help", 

    theme_advanced_buttons7 : "iespell, print,|,ltr,rtl,|, fullscreen", 



    theme_advanced_layout_manager : "SimpleLayout", 
    theme_advanced_toolbar_location : "top", 
    theme_advanced_toolbar_align : "left", 
    theme_advanced_statusbar_location : "bottom", 
    theme_advanced_resizing : true, 

    // =========================================== 
    // Set RELATIVE_URLS to FALSE (This is required for images to display properly) 
    // =========================================== 

//Only if i do not want to use relative url 
    //relative_urls : false 

}; 
+0

で見つけることができますか?誰も答えることができないなら、なぜ下の投票? –

答えて

2

を使用しています、すべてのプラグインのコードで、あなただけの高度なテーマにコードを追加する必要があります。

theme_advanced_buttons1 : "code", 

詳細は、誰かが、少なくとも、なぜダウン票を説明できTinymce website

関連する問題