【发布时间】:2012-01-16 20:34:15
【问题描述】:
我正在尝试通过 jQuery 将 TypeKit 字体加载到 CKEditor 的实例中。这是我的代码:
$('.ck-blog textarea').ckeditor(function () {
CKEDITOR.scriptLoader.load(
"http://use.typekit.com/zku8fnp.js",
function (success) {
Typekit.load();
alert(success); },
null,
true);
},
{
resize_enabled: false,
skin: 'kama',
height: '500px',
toolbarCanCollapse: false,
toolbar_Full: toolbar,
forcePasteAsPlainText: true,
autoGrow_onStartup: true,
templates_replaceContent: false,
extraPlugins: 'autogrow,wordcount',
removePlugins: 'resize',
contentsCss: '/areas/admin/content/css/ckeditor-blog.css',
templates_files: ['/areas/admin/scripts/ckeditor-templates.js'],
autoParagraph: false
});
我在 TypeKit 应该加载后收到成功警报,但我没有看到字体加载。知道我可能做错了什么吗?
【问题讨论】:
标签: javascript jquery ckeditor typekit