, which allows you to use custom nice looking fonts on your website.
To use it you need first to generate a typekit and then it it's ID in following JavaScript code that should be present on all pages:
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
However, when you try to edit content blocks of website, these nice fonts won't be working inside CKEditor. To make them work we need some extra JavaScript code to be added into Admin Console:
CKEDITOR.on(
'instanceReady',
function(ev) {
var $script = document.createElement('script'),
$script.onload = function() {
try{$editor_instance.window.$.Typekit.load();}catch(e){}
};
$editor_instance.document.getHead().$.appendChild($script);
}
);
As you can see both code fragments share TYPEKIT_ID_HERE, which we can move out into a new system setting. When preset we can make CKEditor use it automatically.
--
Best Regards,
http://www.in-portal.comhttp://www.alex-time.com