public static function get($plugin) {
        $dir = core_component::get_component_directory('tinymce_' . $plugin);
        require_once($dir . '/lib.php');
        $classname = 'tinymce_' . $plugin;
        return new $classname($plugin);
    }
public static function get($plugin) {
        $dir = core_component::get_component_directory('tinymce_' . $plugin);
        require_once($dir . '/lib.php');
        $classname = 'tinymce_' . $plugin;
        return new $classname($plugin);
    }
public static function get ( $ plugin ) { $ dir = core_component :: get_component_directory ( 'tinymce_' . $ plugin ) ; require_once ( $ dir . '/lib.php' ) ; $ classname = 'tinymce_' . $ plugin ; return new $ classname ( $ plugin ) ; }
Gets a named plugin object. Will cause fatal error if plugin doesn't exist.

@param string $plugin Name of plugin e.g. 'moodleemoticon'
@return editor_tinymce_plugin Plugin object
Gets a named plugin object . Will cause fatal error if plugin doesn t exist .