Source of file LeftAndMainTinymcePlugin.php
Size: 0,707 Bytes - Last Modified: 2021-12-24T06:50:13+00:00
/var/www/docs.ssmods.com/process/src/src/extensions/LeftAndMainTinymcePlugin.php
123456789101112131415161718192021222324252627 | <?php namespace gorriecoe\Webfonts\Extensions; use gorriecoe\Webfonts\View\Webfonts; use SilverStripe\View\Requirements; use SilverStripe\Admin\LeftAndMainExtension; /** * Include the TinyMCE TypeKit plugin with the CMS configured TypeKit ID. */ class LeftAndMainTinymcePlugin extends LeftAndMainExtension { public function init() { if ($config = Webfonts::WebFontLoaderConfig()) { Requirements::javascriptTemplate( 'gorriecoe/silverstripe-webfonts: assets/js/tinymce.webfonts.js', [ 'Library' => Webfonts::WebFontLoaderLibrary(), 'Config' => $config ] ); } } } |