小编Sar*_*wan的帖子

ckeditor中的自定义字体

我试图添加自定义字体但不能.我收到以下代码的错误,字体名称是在下拉列表中添加,但它没有改变...

我的代码是

config.js:

CKEDITOR.editorConfig = function( config )
{
config.contentsCss = 'fonts.css';
config.font_names = 'Dekers/dekers_true' + config.font_names;
}
Run Code Online (Sandbox Code Playgroud)

fonts.css:

@font-face {  
font-family: "dekers_true", serif;
src: url(fonts/Dekers_light.eot ); /* IE */  
src: local("Dekers"), url("fonts/Dekers_light.ttf") format("truetype"); /*non-IE*/  
}
Run Code Online (Sandbox Code Playgroud)

ckeditor

9
推荐指数
2
解决办法
2万
查看次数

标签 统计

ckeditor ×1