52 'spellcheck' =>
'SpellCheck' 57 public function main($parentObject) {
68 $button =
'spellcheck';
70 $spellCheckerMode = isset(
$GLOBALS[
'BE_USER']->userTS[
'options.'][
'HTMLAreaPspellMode']) ? trim(
$GLOBALS[
'BE_USER']->userTS[
'options.'][
'HTMLAreaPspellMode']) :
'normal';
71 if (!in_array($spellCheckerMode, $this->spellCheckerModes)) {
72 $spellCheckerMode =
'normal';
75 $enablePersonalDicts = $this->thisConfig[
'buttons.'][$button .
'.'][
'enablePersonalDictionaries'] ? (isset(
$GLOBALS[
'BE_USER']->userTS[
'options.'][
'enablePersonalDicts']) &&
$GLOBALS[
'BE_USER']->userTS[
'options.'][
'enablePersonalDicts'] ? TRUE : FALSE) : FALSE;
76 if ($this->htmlAreaRTE->is_FE()) {
77 $enablePersonalDicts = FALSE;
79 $registerRTEinJavascriptString =
'';
80 if (in_array($button, $this->toolbar)) {
81 if (!is_array($this->thisConfig[
'buttons.']) || !is_array($this->thisConfig[
'buttons.'][($button .
'.')])) {
82 $registerRTEinJavascriptString .=
' 83 RTEarea[' . $RTEcounter .
'].buttons.' . $button .
' = new Object();';
85 $registerRTEinJavascriptString .=
' 86 RTEarea[' . $RTEcounter .
'].buttons.' . $button .
'.contentTypo3Language = "' . $this->htmlAreaRTE->contentTypo3Language .
'"; 87 RTEarea[' . $RTEcounter .
'].buttons.' . $button .
'.contentISOLanguage = "' . $this->htmlAreaRTE->contentISOLanguage .
'"; 88 RTEarea[' . $RTEcounter .
'].buttons.' . $button .
'.contentCharset = "' . $this->htmlAreaRTE->contentCharset .
'"; 89 RTEarea[' . $RTEcounter .
'].buttons.' . $button .
'.spellCheckerMode = "' . $spellCheckerMode .
'"; 90 RTEarea[' . $RTEcounter .
'].buttons.' . $button .
'.enablePersonalDicts = ' . ($enablePersonalDicts ?
'true' :
'false') .
';';
91 $registerRTEinJavascriptString .=
' 92 RTEarea[' . $RTEcounter .
'].buttons.' . $button .
'.path = "' . ($this->htmlAreaRTE->is_FE() || $this->htmlAreaRTE->isFrontendEditActive() ? (
$GLOBALS[
'TSFE']->absRefPrefix ?
$GLOBALS[
'TSFE']->absRefPrefix :
'') .
'index.php?eID=rtehtmlarea_spellchecker' : $this->htmlAreaRTE->backPath .
BackendUtility::getAjaxUrl(
'rtehtmlarea::spellchecker')) .
'";';
94 return $registerRTEinJavascriptString;
static getAjaxUrl($ajaxIdentifier, array $urlParameters=array(), $backPathOverride=FALSE, $returnAbsoluteUrl=FALSE)
$relativePathToLocallangFile
static trimExplode($delim, $string, $removeEmptyValues=FALSE, $limit=0)
$convertToolbarForHtmlAreaArray
static isLoaded($key, $exitOnError=FALSE)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
buildJavascriptConfiguration($RTEcounter)