This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tinymce.PluginManager.add('typekit', function(editor) { | |
editor.on('init', function() { | |
// Get the DOM document object for the IFRAME | |
var doc = this.getDoc(); | |
// Create the script we will add to the header asynchronously | |
var jscript = "(function(d) {\n\ | |
var config = {\n\ | |
kitId: 'xxxxxxx',\n\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tinymce.PluginManager.add('fontsdotcom', function(editor) { | |
editor.on('init', function() { | |
// Get the DOM document object for the IFRAME | |
var doc = this.getDoc(); | |
// Create a script element and insert the Fonts.com URL into it | |
var script = doc.createElement("script"); | |
script.type = "text/javascript"; | |
script.src = "//fast.fonts.net/jsapi/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.js"; |