Skip to content

Commit

Permalink
add missing properties/variables to ckeditorcontrol & tinymceeditorco…
Browse files Browse the repository at this point in the history
…ntrol
  • Loading branch information
dleffler committed Nov 21, 2016
1 parent c9721db commit 8a88599
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion framework/core/forms/controls/bootstrap3/ckeditorcontrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class ckeditorcontrol extends formcontrol {
var $maxchars;
var $toolbar;
var $tb_collapsed = false;
var $lazyload;
var $plugin;
var $additionalConfig;

static function name() {
return "CKEditor";
Expand Down Expand Up @@ -104,7 +107,7 @@ function controlToHTML($name, $label) {
// make sure the (custom) skin exists
if (empty($skin) || !is_dir(BASE . 'external/editors/ckeditor/skins/' . $skin)) $skin = 'kama';
if (empty($tb)) {
if ($this->toolbar === 'basic') {
if ($this->toolbar === 'basic') {
$tb = "
toolbar : [
['Bold','Italic','Underline','RemoveFormat','-','NumberedList','BulletedList','-','Link','Unlink','-','About']
Expand Down
3 changes: 3 additions & 0 deletions framework/core/forms/controls/bootstrap3/tinymcecontrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class tinymcecontrol extends formcontrol
var $maxchars;
var $toolbar;
var $tb_collapsed = false;
var $lazyload;
var $plugin;
var $additionalConfig;

static function name()
{
Expand Down
9 changes: 6 additions & 3 deletions framework/core/forms/controls/ckeditorcontrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class ckeditorcontrol extends formcontrol {
var $maxchars;
var $toolbar;
var $tb_collapsed = false;
var $lazyload;
var $plugin;
var $additionalConfig;

static function name() {
return "CKEditor";
Expand All @@ -57,13 +60,13 @@ function controlToHTML($name, $label) {
if (is_file(BASE . $css)) {
$contentCSS = "contentsCss : '" . PATH_RELATIVE . $css . "',";
}

if (is_file(BASE . 'themes/' . DISPLAY_THEME . '/editors/ckeditor/config.js')) {
$configjs = "customConfig : '" . PATH_RELATIVE . 'themes/' . DISPLAY_THEME . '/editors/ckeditor/config.js' . "',";
} else {
$configjs = "";
}

if ($this->toolbar === '') {
// $settings = $db->selectObject('htmleditor_ckeditor', 'active=1');
$settings = expHTMLEditorController::getActiveEditorSettings('ckeditor');
Expand Down Expand Up @@ -104,7 +107,7 @@ function controlToHTML($name, $label) {
// make sure the (custom) skin exists
if (empty($skin) || !is_dir(BASE . 'external/editors/ckeditor/skins/' . $skin)) $skin = 'kama';
if (empty($tb)) {
if ($this->toolbar === 'basic') {
if ($this->toolbar === 'basic') {
$tb = "
toolbar : [
['Bold','Italic','Underline','RemoveFormat','-','NumberedList','BulletedList','-','Link','Unlink','-','About']
Expand Down
3 changes: 3 additions & 0 deletions framework/core/forms/controls/tinymcecontrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class tinymcecontrol extends formcontrol
var $maxchars;
var $toolbar;
var $tb_collapsed = false;
var $lazyload;
var $plugin;
var $additionalConfig;

static function name()
{
Expand Down

0 comments on commit 8a88599

Please sign in to comment.