Cách tạo thêm font-family trong Rich Text Editor


Bước 1: 

Download font cần thêm vào Rich Text Editor


Bước 2:

Copy font và Paste vào folder assets/vender/font-family/fonts/


Bước 3:

Thêm font face trong css assets/vender/font-family/font-family.css


Ví dụ:  

@font-face {

font-family: Fujiyama,

src: 

}


Bước 4:

Add vào file \Scripts\kenhmoi\kenhmoi.helper.js


Ở mục initEditor

tools => name: "fontName"

Thêm item mới ở items

{ 

text: "Play", ( tên hiển thị cho người dùng )

value: "Fujiyama"  ( phải trùng với font-family ở font-face ở bước 3 )

}



Gửi bình luận của bạn

Đăng nhập để bình luận