Tag: typekit

如何使用jQuery将TypeKit字体加载到CKEditor实例中

我正在尝试通过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应该加载后我得到了成功警报,但我没有看到字体加载。 知道我可能做错了什么吗?