我在我的网站上使用ckeditor。我想知道如何在ckeditor中键入hindi。我正在使用kruti dev010。 在config.js文件中我包括:
config.font_names = 'kruti_dev_010;' + config.font_names;
并在content.css文件中添加了:
@font-face {
font-family:'kruti_dev_010regular';
src: url('krutidev-webfont.eot');
src: url('krutidev-webfont.eot?#iefix') format('embedded-opentype'),
url('krutidev-webfont.woff') format('woff'),
url('krutidev-webfont.ttf') format('truetype'),
url('krutidev-webfont.svg#kruti_dev_010bold') format('svg');
font-weight: normal;
font-style: normal;
}
我无法输入印地语,如果我粘贴内容,则会显示一些特殊字符
答案 0 :(得分:-1)
下载hindi字体Kruti010字体here。
在Config.js
的{{1}}中添加:
CkEditor
在config.font_names = 'Hindi/Kruti'; + config.font_names;
的langs文件夹中添加hindi字体:
Ckeditor
在ckeditor的content.css中添加css。
ckeditor/lang/Kruti/k010.ttf
正确检查你的路径。