TinyMCE Rupess Symbol Comes as Rectangular Box

时光毁灭记忆、已成空白 提交于 2019-12-25 12:51:25

问题


I have Added a new option in TinyMCE CharMap . but since font was not supporting in client system so how do we import custom font to Rupess symbol appear perfectly .

tinymce.PluginManager.add("charmap", function(e) {
function t() {
    return [
        ["8377", "Rupess Symbol"],
        ["160", "no-break space"],
         ..So on 
        ["8207", "right-to-left mark"]
    ]
 }

Please any one suggest or provide live fiddle with font supported and display Rupess Symbol . since we can't install font on client systems . Thanks


回答1:


Are you asking how you get a client machine to use a font you want to support a symbol? Effectively you can't control what someone installs on their machine.

What you may be able to do is use inline styles to define the font family for the symbol to a font family that would work on most platforms?

Perhaps something like this:

<span style="font-family: 'Sans-Serif';">&#8377;</span>

In my brief testing this renders on Windows and Mac machines.



来源:https://stackoverflow.com/questions/42896117/tinymce-rupess-symbol-comes-as-rectangular-box

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!