我试图添加自定义字体但不能.我收到以下代码的错误,字体名称是在下拉列表中添加,但它没有改变...
我的代码是
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 ×1