javascript - CKEditor external fonts load in dropdown of Fonts -
in ckeditor (in inline mode) have fonts google fonts (external) , not load correctly in dropdown of fonts.
- it possible remove "preview" of each font in dropdown of fonts only?
- or exist other way load correctly fonts in dropdown of fonts?
hope works - https://stackoverflow.com/a/13995619/4260462
myfonts = ['aclonica', 'allan', 'allerta', 'allerta stencil', 'amaranth', 'angkor', 'annie use telescope', 'anonymous pro', 'anton', 'architects daughter', 'arimo', 'artifika', 'arvo', 'astloch', 'bangers', 'battambang', 'bayon', 'bentham', 'bevan', 'bigshot one', 'bokor', 'brawler', 'buda', 'cabin', 'cabin sketch', 'calligraffitti', 'candal', 'cantarell', 'cardo', 'carter one', 'caudex', 'chenla', 'cherry cream soda', 'chewy', 'coda', 'coda caption', 'coming soon', 'content', 'copse', 'corben', 'cousine', 'covered grace', 'crafty girls', 'crimson text', 'crushed', 'cuprum', 'damion', 'dancing script', 'dangrek', 'dawning of new day', 'didact gothic', 'droid sans', 'droid sans mono', 'droid serif', 'eb garamond', 'expletus sans', 'fontdiner swanky', 'francois one', 'freehand', 'gfs didot', 'gfs neohellenic', 'geo', 'goudy bookletter 1911', 'gruppo', 'handlee', 'hanuman', 'holtwood 1 sc', 'homemade apple', 'im fell dw pica', 'im fell dw pica sc', 'im fell double pica', 'im fell double pica sc', 'im fell english', 'im fell english sc', 'im fell french canon', 'im fell french canon sc', 'im fell great primer', 'im fell great primer sc', 'inconsolata', 'indie flower', 'irish grover', 'josefin sans', 'josefin slab', 'judson', 'jura', 'just hand', 'just me again down here', 'kenia', 'khmer', 'koulen', 'kranky', 'kreon', 'kristi', 'lato', 'league script', 'lekton', 'limelight', 'lobster', 'lora', 'luckiest guy', 'maiden orange', 'mako', 'maven pro', 'meddon', 'medievalsharp', 'megrim', 'merriweather', 'metal', 'metrophobic', 'michroma', 'miltonian', 'miltonian tattoo', 'molengo', 'monofett', 'moul', 'moulpali', 'mountains of christmas', 'muli', 'neucha', 'neuton', 'news cycle', 'nobile', 'nova cut', 'nova flat', 'nova mono', 'nova oval', 'nova round', 'nova script', 'nova slim', 'nova square', 'nunito', 'ofl sorts mill goudy tt', 'odor mean chey', 'old standard tt', 'open sans', 'open sans condensed', 'orbitron', 'oswald', 'over rainbow', 'pt sans', 'pt sans caption', 'pt sans narrow', 'pt serif', 'pt serif caption', 'pacifico', 'paytone one', 'permanent marker', 'philosopher', 'play', 'playfair display', 'podkova', 'preahvihear', 'puritan', 'quattrocento', 'quattrocento sans', 'radley', 'raleway', 'reenie beanie', 'rock salt', 'rokkitt', 'ruslan display', 'schoolbell', 'shanti', 'siemreap', 'sigmar one', 'six caps', 'slackey', 'smythe', 'sniglet', 'special elite', 'sue ellen francisco', 'sunshiney', 'suwannaphum', 'swanky , moo moo', 'syncopate', 'tangerine', 'taprom', 'tenor sans', 'terminal dosis light', 'the girl next door', 'tinos', 'ubuntu', 'ultra', 'unifrakturcook', 'unifrakturmaguntia', 'unkempt', 'vt323', 'vibur', 'vollkorn', 'waiting sunrise', 'wallpoet', 'walter turncoat', 'wire one', 'yanone kaffeesatz']; config.font_names = 'serif;sans serif;monospace;cursive;fantasy'; for(var = 0; i<myfonts.length; i++){ config.font_names = config.font_names+';'+myfonts[i]; myfonts[i] = 'http://fonts.googleapis.com/css?family='+myfonts[i].replace(' ','+'); } config.contentscss = ['/ckeditor/contents.css'].concat(myfonts);
Comments
Post a Comment