• customer service QQ:    WeChat: Contact number: 18613993467     

Ueditor Rich text editor adds other languages

Suyou Network (10 years of experience), serves tens of thousands of companies, and has fixed transparent quotations. Domain name registration, hosting /One-stop service for server and website source code. A physical company, a professional team, worth choosing! Website building business: corporate website construction, company official website production, foreign trade website construction, website imitation, website copying, imitation site, foreign trade website construction, single-page customer service WeChat【 suyoufuwu】


Ueditor Rich text editorSometimes the fonts that come with are not enough for the project, or the customer has special requirements, then we need to give it toUeditor Rich text editorAdd custom fonts for customers to choose from, soThere are more operations to add fonts to our editor project
 
1.Add in the paths of the two screenshots respectively siyuanheiti,siyuansongti Font

Editor File 1

Editor File 2

Complete the above two steps, we can add it to the editor's font list siyuanheiti,siyuansongti font, but siyuanheiti,siyuansongti We don't see it on the page yet, we need tozh-cn.js Go to define a name

Editor File 3

 
Complete the above steps, we can see that the font list of the editor has been added. siyuanheiti,siyuansongti The font of the font has no effect, because neither our system nor project siyuanheiti,siyuansongti Font. This is normal.
2.Add to the editor siyuanheiti,siyuansongti Fonts, copy the font package in the corresponding folder, and then introduce a new font package into the style.

Editor File 4
 
Editor File 5
 
 
 
3.This is done, select in the editor siyuanheiti,siyuansongti You can see the font effect we customized.
Editor File 6
 
 
4.The above steps already allow us to see the font effect in the editor, but the ultimate goal of adding fonts is to display them in the project. So this step is to add fonts to the project. Here is a project as an example.
 
In the front-end file, introduce the corresponding font package and call the style of the font package in the front-end style file.

Editor File 7



Editor File 8
 

The above is shared by Suyou.com with everyone" Ueditor Rich text editor adds other languages", thank you very much for your patience to read this article, we will provide you with more information on reference or learning communication. We can also provide you with: Enterprise website construction, website imitation, website copying, imitation site, foreign trade website construction, foreign trade website construction, company official website productionFor services, our company serves customers with the service concept of "integrity, professionalism, pragmatism and innovation". If you need cooperation, please scan the code to consult, and we will serve you sincerely.

TAG Label:

National branch station

National branch station