You are here

function _wysiwyg_tinymce_get_plugin_url in Wysiwyg 6.2

Same name and namespace in other branches
  1. 7.2 editors/tinymce.inc \_wysiwyg_tinymce_get_plugin_url()

Helper to get the URL for a plugin.

Parameters

$plugin_name: Internal name of the plugin.

3 calls to _wysiwyg_tinymce_get_plugin_url()
wysiwyg_tinymce_settings_form in editors/tinymce.inc
Enhances the editor profile settings form for TinyMCE.
_wysiwyg_tinymce_get_plugin_setting_description in editors/tinymce.inc
Helper to get the URL for a plugin settings.
_wysiwyg_tinymce_plugins in editors/tinymce.inc
Return internal plugins for this editor; semi-implementation of hook_wysiwyg_plugin().

File

editors/tinymce.inc, line 1429
Editor integration functions for TinyMCE.

Code

function _wysiwyg_tinymce_get_plugin_url($plugin_name) {
  static $is_v3 = NULL;
  if (!isset($is_v3)) {
    $is_v3 = _wysiwyg_tinymce_is_v3();
  }
  return $is_v3 ? "https://www.tinymce.com/docs-3x/reference/plugins/Plugin3x@{$plugin_name}/" : "https://www.tinymce.com/docs/plugins/{$plugin_name}/";
}