How can I show TinyMCE badges?

I installed TinyMCE, and I have a text box, and the functions work (for example,), but I do not see a window with the image of all the icons. Like in this example . How to get images for display? All I have is a text box. I used the code from the sample link, and they have images, and all I have is a text box. What part do I edit to see the icons?

    //my source link
    <script type="text/javascript" src="/tinymce/jscripts/tiny_mce/tiny_mce.js">
tinyMCE.init({

    // Example content CSS (should be your site CSS)
    content_css : "style12.css",

    // Drop lists for link/image/media/template dialogs
    template_external_list_url : "/tinymce/examples/lists/template_list.js",
    external_link_list_url : "/tinymce/examples/lists/link_list.js",
    external_image_list_url : "/tinymce/examples/lists/image_list.js",
    media_external_list_url : "/tinymce/examples/lists/media_list.js",
+3
source share
3 answers

Hey there. A few things that should help (I'm sure the first point will solve your problem):

  • init script, . , (0) . , : media_external_list_url : "/tinymce/examples/lists/media_list.js",

  • , list_url .

  • , , . "" , , ( , ):

<script type="text/javascript"> 
tinyMCE.init({

mode : "textareas", 
theme : "advanced", 
plugins : "safari,spellchecker,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,imagemanager,filemanager",

theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",

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


content_css : "style12.css",

// Drop lists for link/image/media/template dialogs 
template_external_list_url : "/tinymce/examples/lists/template_list.js", 
external_link_list_url : "/tinymce/examples/lists/link_list.js", 
external_image_list_url : "/tinymce/examples/lists/image_list.js", 
media_external_list_url : "/tinymce/examples/lists/media_list.js" 

}); 
</script>

, init:

<script type="text/javascript"> 
   tinyMCE.init({ 
      mode : "textareas", 
      theme : "simple" 
   }); 
</script> 
+4

, .
...

,

theme : "advanced"
+1

I think the main problem you are facing is that you are applying code changes in the tag that loads the code. You must close the script tag, and then apply a new script tag, one that does not load another file, and apply your script page. Remember, upload the file (separate tag), and then apply the calls to the downloaded code.

<script type="text/javascript" src="/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
...code...
</script>
0
source

Source: https://habr.com/ru/post/1740822/


All Articles