[英]TinyMCE 4 not showing toolbar icons in IE9 (any mode)
TinyMCE有這個易於使用的代碼,但我看不到IE9中的工具欄圖標(imgs似乎沒有加載它)。
<html>
<head><!-- CDN hosted by Cachefly -->
<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<script> tinymce.init({selector:'textarea'});</script>
</head>
<body>
<textarea>Your content here.</textarea>
</body>
</html>
我見過這個類似的帖子( Internet Explorer中的tinymce圖標 ),但這個建議對我來說沒有任何區別。
我試過把瀏覽器放在不同的模式,什么都沒有用。 我在IE中看到它工作的唯一一次是在EditPlus嵌入式瀏覽器中,但我不確切知道它是什么。
適用於Chrome。
EDIT-在直接加載文件時可以在IE中工作,例如。 C:\\的Inetpub \\ wwwroot的\\ tiny.html
謝謝。
TinyMCE 4使用包含所有圖標的webfont。 確保它們已加載,並且在使用標題Access-Control-Allow-Origin: *
加載字體時允許跨Access-Control-Allow-Origin: *
用IE檢查的一件事是字體下載安全設置。 如果設置設置為“禁用”,則不會顯示Web字體圖標,因為無法下載字體。 單擊“Internet選項”對話框的“安全”選項卡上的“自定義級別...”按鈕可以找到該設置,該對話框可在“工具”>“Internet選項”下訪問。
當我檢查工具欄圖標時:我發現它們是Web字體
<i class="mce-ico mce-i-bold"></i>
這樣代表大膽。 這意味着正確地說TINYMCE正在使用工具欄的Web字體,這些字體沒有顯示出來。
有一些問題可以解決IE 9和以前版本的chrome上的相同問題。 這是鏈接
其中說:
對於下面給出的示例,假設文檔位於http://example.com/page.html,並且所有URL鏈接到用戶代理支持的有效字體資源。 將加載使用下面的'src'描述符值定義的字體:
/* same origin (i.e. domain, scheme, port match document) */
src: url(fonts/simple.woff);
/* data url's with no redirects are treated as same origin */
src: url("data:application/font-woff;base64,...");
/* cross origin, different domain */
/* Access-Control-Allow-Origin response header set to '*' */
src: url(http://another.example.com/fonts/simple.woff);
使用下面的'src'描述符值定義的字體將無法加載:
/* cross origin, different scheme */
/* no Access-Control-xxx headers in response */
src: url(https://example.com/fonts/simple.woff);
/* cross origin, different domain */
/* no Access-Control-xxx headers in response */
src: url(http://another.example.com/fonts/simple.woff);
正如github https://github.com/tinymce/tinymce/tree/master/js/tinymce/skins/lightgray/fonts所見,他們使用的是icomoon字體。 因此,下載這些並在您自己的服務器上使用。 希望它能解決目的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.