Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CKEditor 4.0.2 Update
#22
Hello,
ok, now it is better. The Editor-Windows is visible.
But still troubles if no definitions in gsfonfig.php.

My recommentations are following, because I mean it is more consistent:
DE: Meine Empfehlungen für mehr Konsistenz:

1) If GSEDITOROPTIONS is not defined in gsconfig.php then nothing should be included.
Wenn in gsconfig.php GSEDITOROPTIONS nicht definiert ist, dann sollte auch nichts eingefügt werden.

your GS3.2.1:
Code:
if (defined('GSEDITOROPTIONS') && trim(GSEDITOROPTIONS)!="") { $EDOPTIONS = ", ".GSEDITOROPTIONS; } else {    $EDOPTIONS = ''; }

toolbar :
[
<?php echo $toolbar; ?>
]
<?php echo $EDOPTIONS; ?>,

my recommentation #1:
Code:
if (defined('GSEDITOROPTIONS') && trim(GSEDITOROPTIONS)!="") { $EDOPTIONS = GSEDITOROPTIONS.","; } else {    $EDOPTIONS = ''; }

toolbar :
[
<?php echo $toolbar; ?>
],
<?php echo $EDOPTIONS; ?>

2) If GSEDITORTOOL is not defined in gsconfig.php then nothing should be included.
There is a default Toolbar in GKE 4.1 - so I need no config-definition.
DE: Wenn in gsconfig.php GSEDITOROPTIONS nicht definiert ist, dann sollte auch nichts eingefügt werden.
In CKE 4.1 ist sowieso eine Toolbar als default.

your GS3.2.1:
Code:
if (defined('GSEDITORTOOL')) { $EDTOOL = GSEDITORTOOL; } else {    $EDTOOL = 'basic'; }

if ($EDTOOL == 'advanced') {
    ...

    } else {
        $toolbar = GSEDITORTOOL;
    }


toolbar :
[
<?php echo $toolbar; ?>
],

my recommentation #2:
Code:
if (defined('GSEDITORTOOL')) { $EDTOOL = GSEDITORTOOL; } else {    $EDTOOL = ''; }

if ($EDTOOL == 'advanced') {
    ...

    } else {
        $toolbar = GSEDITORTOOL;
    }

if (defined('GSEDITORTOOL')) { $toolbar = 'toolbar :['.$toolbar.'],'; }
else {    $toolbar = ''; }



<?php echo $toolbar; ?>

!!! - Changes from Toolbar-Buttons will not recognised !!!

LG Wolfgang
Reply


Messages In This Thread
CKEditor 4.0.2 Update - by karamo - 2013-03-21, 19:30:49
RE: CKEditor 4.0.2 Update - by Connie - 2013-03-21, 22:04:53
RE: CKEditor 4.0.2 Update - by karamo - 2013-03-22, 01:00:58
RE: CKEditor 4.0.2 Update - by shovenose - 2013-03-22, 03:19:20
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-03-22, 03:30:06
RE: CKEditor 4.0.2 Update - by karamo - 2013-03-22, 06:38:20
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-03-22, 07:54:40
RE: CKEditor 4.0.2 Update - by karamo - 2013-03-22, 19:03:48
RE: CKEditor 4.0.2 Update - by Connie - 2013-03-22, 21:27:06
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-03-22, 22:36:57
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-03-22, 23:27:15
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-02, 23:28:27
RE: CKEditor 4.0.2 Update - by karamo - 2013-04-03, 06:53:28
RE: CKEditor 4.0.2 Update - by shovenose - 2013-04-05, 10:21:00
RE: CKEditor 4.0.2 Update - by karamo - 2013-04-06, 17:58:40
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-06, 23:45:33
RE: CKEditor 4.0.2 Update - by karamo - 2013-04-07, 10:27:27
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-07, 10:31:10
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-07, 11:42:00
RE: CKEditor 4.0.2 Update - by karamo - 2013-04-07, 20:31:59
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-07, 23:32:43
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-07, 23:48:50
RE: CKEditor 4.0.2 Update - by karamo - 2013-04-08, 03:43:21
RE: CKEditor 4.0.2 Update - by Connie - 2013-04-08, 18:19:08
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-08, 09:35:33
RE: CKEditor 4.0.2 Update - by karamo - 2013-04-08, 22:50:42
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-08, 22:53:32
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-08, 22:54:32
RE: CKEditor 4.0.2 Update - by karamo - 2013-04-08, 23:55:11
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-08, 23:59:53
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-09, 00:01:18
RE: CKEditor 4.0.2 Update - by Connie - 2013-04-09, 17:20:19
RE: CKEditor 4.0.2 Update - by karamo - 2013-04-11, 07:04:50
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-11, 07:57:57
RE: CKEditor 4.0.2 Update - by karamo - 2013-04-11, 17:39:14
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-11, 22:20:23
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-11, 23:24:55
RE: CKEditor 4.0.2 Update - by zintonio - 2013-04-30, 19:53:58
RE: CKEditor 4.0.2 Update - by karamo - 2013-04-30, 20:18:10
RE: CKEditor 4.0.2 Update - by zintonio - 2013-04-30, 21:04:29
RE: CKEditor 4.0.2 Update - by karamo - 2013-05-01, 02:17:36
RE: CKEditor 4.0.2 Update - by zintonio - 2013-05-01, 17:26:58
RE: CKEditor 4.0.2 Update - by karamo - 2013-05-01, 17:44:37
RE: CKEditor 4.0.2 Update - by zintonio - 2013-05-01, 18:40:27
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-30, 22:17:35
RE: CKEditor 4.0.2 Update - by zintonio - 2013-04-30, 22:55:46
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-04-30, 23:06:08
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-05-01, 23:23:18
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-05-01, 23:32:25
RE: CKEditor 4.0.2 Update - by zintonio - 2013-05-05, 00:26:54
RE: CKEditor 4.0.2 Update - by Carlos - 2013-05-02, 03:20:05
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-05-02, 04:58:23
RE: CKEditor 4.0.2 Update - by Carlos - 2013-05-02, 05:02:47
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-05-02, 05:24:45
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-05-04, 06:00:35
RE: CKEditor 4.0.2 Update - by karamo - 2013-05-04, 08:09:15
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-05-04, 08:41:34
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-05-05, 01:13:32
RE: CKEditor 4.0.2 Update - by shawn_a - 2013-05-05, 01:19:19



Users browsing this thread: 1 Guest(s)