In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
The knowledge of this article "how to modify the font options in the ueditor editor" is not understood by most people, so the editor gives you a summary of the following, detailed contents, clear steps, and a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to modify the font options in the ueditor editor" article.
Generally speaking, it is not recommended to add fonts in ueditor, or even to use the fonts here. Because what font can be displayed in the browser depends on what font is installed on the computer where the browser is located. It is not that the browser can display whatever font is set in the editor.
So fonts are generally specified by css, and only generic fonts are specified, which are those installed on most computers.
Modify the ueditor configuration file to control the font options in the editor. Modify the file / static/vendor/ueditor/ueditor.config.js
..., 'fontfamily': [{label:'',name:'songti',val:'SimSun'}, {label:'',name:'kaiti',val:'SimKai,KaiTi'}, {label:'',name:'yahei',val:'Microsoft YaHei'}, {label:'',name:'heiti',val:'SimHei'}, {label:'',name:'lishu',val:'SimLi,LiSu'}, {label:'' Name:'andaleMono',val:'andale mono'}, {label:'',name:'arial',val:'arial, helvetica,sans-serif'}, {label:'',name:'arialBlack',val:'arial black,avant garde'}, {label:'',name:'comicSansMs',val:'comic sans ms'}, {label:'',name:'impact',val:'impact,chicago'}, {label:'',name:'timesNewRoman' Val:'times new roman'}]...
Note that only English names can be used for fonts, not Chinese names. For example, the Song style should use SimSun. After modifying the configuration file, you need to clear the browser cache and reopen the browser to take effect.
The above is about the content of this article on "how to modify the font options in the ueditor editor". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.