Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/fck_helper.php
Show First 20 Lines • Show All 411 Lines • ▼ Show 20 Line(s) | |||||
$editor = $this->prepareConfig($this->getEditor(), $params); | $editor = $this->prepareConfig($this->getEditor(), $params); | ||||
$events = Array ( | $events = Array ( | ||||
'configLoaded' => 'function(ev) { CKEDITOR.addCss(ev.editor.config.extraCss); }', | 'configLoaded' => 'function(ev) { CKEDITOR.addCss(ev.editor.config.extraCss); }', | ||||
'focus' => 'function(ev) { $("body").trigger("InlineEditor.Focus", [ev]); }', | 'focus' => 'function(ev) { $("body").trigger("InlineEditor.Focus", [ev]); }', | ||||
'blur' => 'function(ev) { $("body").trigger("InlineEditor.Blur", [ev]); }', | 'blur' => 'function(ev) { $("body").trigger("InlineEditor.Blur", [ev]); }', | ||||
); | ); | ||||
return $editor->inline($editor_name, Array (), $events); | return $editor->inline($editor_name, array('removePlugins' => 'codemirror'), $events); | ||||
} | } | ||||
/** | /** | ||||
* Adds measurement units to editor dimensions. | * Adds measurement units to editor dimensions. | ||||
* | * | ||||
* @param string $dimension Dimension. | * @param string $dimension Dimension. | ||||
* | * | ||||
* @return string | * @return string | ||||
▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines |