You are here

function _wysiwyg_tinymce_is_v3 in Wysiwyg 6.2

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

Check if the installed major version is 3.

Return value

bool TRUE if the installed major version is 3.

4 calls to _wysiwyg_tinymce_is_v3()
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_get_plugin_url in editors/tinymce.inc
Helper to get the URL for a plugin.
_wysiwyg_tinymce_get_setting_description in editors/tinymce.inc
Helper to get the URL for a general setting.

File

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

Code

function _wysiwyg_tinymce_is_v3() {
  static $is_v3 = NULL;
  if (!isset($is_v3)) {
    $editor = wysiwyg_get_editor('tinymce');
    if (!empty($editor['installed version'])) {
      $is_v3 = version_compare($editor['installed version'], '4.0.0', '<');
    }
    else {
      $is_v_3 = FALSE;
    }
  }
  return $is_v3;
}