getManifest()->getModule('silverstripe/cms'); // Enable insert-link to internal pages TinyMCEConfig::get('cms') ->enablePlugins([ 'sslinkinternal' => $module ->getResource('client/dist/js/TinyMCE_sslink-internal.js'), 'sslinkanchor' => $module ->getResource('client/dist/js/TinyMCE_sslink-anchor.js'), ]); }); /** * Register the default internal shortcodes. */ ShortcodeParser::get('default')->register( 'sitetree_link', [SiteTree::class, 'link_shortcode_handler'] );