Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
 /**
  * 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);
 }