/** * Gets a named plugin object. Will cause fatal error if plugin doesn't * exist. This is intended for use by plugin files themselves. * * @param string $plugin Name of plugin e.g. 'moodleemoticon' * @return editor_tinymce_plugin Plugin object */ public function get_plugin($plugin) { global $CFG; require_once $CFG->dirroot . '/lib/editor/tinymce/classes/plugin.php'; return editor_tinymce_plugin::get($plugin); }
/** * Gets a named plugin object. Will cause fatal error if plugin doesn't * exist. This is intended for use by plugin files themselves. * * @param string $plugin Name of plugin e.g. 'moodleemoticon' * @return editor_tinymce_plugin Plugin object */ public function get_plugin($plugin) { global $CFG; return editor_tinymce_plugin::get($plugin); }