You are here

function _wysiwyg_spellcheck_default_path in Wysiwyg SpellCheck 6

Same name and namespace in other branches
  1. 7 wysiwyg_spellcheck.module \_wysiwyg_spellcheck_default_path()

@file wysiwyg_spellcheck is a plugin for wysiwyg editors

1 call to _wysiwyg_spellcheck_default_path()
_wysiwyg_spellcheck_path in ./wysiwyg_spellcheck.module

File

./wysiwyg_spellcheck.module, line 9
wysiwyg_spellcheck is a plugin for wysiwyg editors

Code

function _wysiwyg_spellcheck_default_path($editor) {

  // Get base path.
  $path = function_exists('wysiwyg_get_path') ? wysiwyg_get_path($editor) : 'sites/all/libraries/' . $editor;

  // Get spellcheck plugin path.
  switch ($editor) {
    case 'tinymce':
      $path .= '/jscripts/tiny_mce/plugins/spellchecker';
      break;
    case 'ckeditor':
      $path .= '/plugins/aspell';
      break;
  }
  return $path;
}