TinyMCE: toolbar icons not showing

I was studying the tiny mce editor for one of my projects, and it turned out that the icons in the toolbar did not appear. It shows some unicode that the browser cannot display. Here is the html code for the page:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/ht/loose.dtd"> <html> <head> <title>HTML</title> <script type="text/javascript" src="../js/tinymce/tinymce.min.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <script type="text/javascript"> tinymce.init({ selector: "textarea", plugins: [ "advlist autolink autosave link image lists charmap print preview hr anchor pagebreak spellchecker", "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking", "table contextmenu directionality emoticons template textcolor paste fullpage textcolor" ], toolbar1: "newdocument fullpage | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | styleselect formatselect fontselect fontsizeselect", toolbar2: "cut copy paste | searchreplace | bullist numlist | outdent indent blockquote | undo redo | link unlink anchor image media code | inserttime preview | forecolor backcolor", toolbar3: "table | hr removeformat | subscript superscript | charmap emoticons | print fullscreen | ltr rtl | spellchecker | visualchars visualblocks nonbreaking template pagebreak restoredraft", menubar: false, toolbar_items_size: 'small', style_formats: [ {title: 'Bold text', inline: 'b'}, {title: 'Red text', inline: 'span', styles: {color: '#ff0000'}}, {title: 'Red header', block: 'h1', styles: {color: '#ff0000'}}, {title: 'Example 1', inline: 'span', classes: 'example1'}, {title: 'Example 2', inline: 'span', classes: 'example2'}, {title: 'Table styles'}, {title: 'Table row 1', selector: 'tr', classes: 'tablerow1'} ], templates: [ {title: 'Test template 1', content: 'Test 1'}, {title: 'Test template 2', content: 'Test 2'} ] });</script> </head> <body> <form method="post" action="somepage"> <textarea name="content" style="width:100%"></textarea> </form> </body> </html> 

On the other hand, if I replaced the script with

 <script type="text/javascript" src="http://tinymce.cachefly.net/4.0/tinymce.min.js"></script> 

I can clearly see all the icons. I added all js contents in tinymce download to my web project in js folder. Does anyone know about this issue?

+6
source share
6 answers

Ok, I got this job.

After carefully analyzing the console error, I found out that this is a tinymce font problem that does not load.

This is mainly a problem with the Mozilla Firefox security.fileuri.strict_origin_policy property, which needed to be replaced with false to reduce the source restriction. Now I can clearly see these icons.

+2
source

do not put the js folder too far outside ..... enter image description here

the problem is resolved when the link folder (tinymce) is placed with the html file (or whatever) ... enter image description here

+4
source

I had the same problem and .htaccess and other things did not work for me ....

... finally, I found out that I announced

 *{ font-family: fonts,fonts,fonts, sans-serif !important; } 

I found out that

"important!"

it breaks my CSS all after @ font-face is ignored.

in my special case, it does not show the tinymce icon even after I deleted it! importantly, everything is working fine.

check your general css settings first :)

hope this help

+4
source

Who will have the same problem in the future: also make sure your .htaccess does not block the following extensions:

.eot .svg .ttf .woff

+3
source

To someone who will have the same problem in the future, episode 2 (see my previous answer above for episode 1):

the browser has an option (at least in firefox) to block fonts from loading. Someone messed up this option and the toolbar icons didn’t display correctly ...

About tinymce, how many hours will I lose due to the fact that your icons do not appear :(

+1
source

Tinymce 4 uses CSS content property to display toolbar icons

property Contentpoint Content | CSS tricks description

so any browser that supports the content property, you can see that

Note. IE8 only supports content property if parameter is specified! DOCTYPE (w3schools link)

0
source

All Articles