Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM Upgrade to CKEDITOR 4.5.7 with GS version 3.3.9
#1
This is an information for users of advanced configuration of the editor, like it is described in the WIKI (using custom config file and "define('GSEDITOROPTIONS')" in the gsconfig.php

If configured to use a different skin for the editor, you have to do change the configuration.

a)
the skins have to be updated, the "old" skins are not compatible
you will find the actual skins at http://ckeditor.com/addons/skins/all

download the one you want, extract the zip

delete the custom skin files at the server in the folder /admin/template/js/ckeditor/skins
upload the skin-folder to /admin/template/js/ckeditor/skins

b)
now modify the following in gsconfig.php, you have to delete the last part, ",skin:'name of the skin' must be deleted


Code:
define('GSEDITOROPTIONS', "entities : false,forceSimpleAmpersand:true,customConfig : '../../../../theme/gs.js',skin:'kama'");


Code:
define('GSEDITOROPTIONS', "entities : false,forceSimpleAmpersand:true,customConfig : '../../../../theme/gs.js'");


c) now you have to add a new configuration in the customConfig-file (if you have, if you have not read the WIKI):


Code:
CKEDITOR.editorConfig = function( config )

{
    config.toolbarCanCollapse = true,
    config.enterMode = CKEDITOR.ENTER_P,
    config.shiftEnterMode = CKEDITOR.ENTER_BR,
    config.colorButton_enableMore = true,
    config.bodyId = 'content',
    config.entities = false,
    config.forceSimpleAmpersand = false,
    config.fontSize_defaultLabel = '12px',
    config.font_defaultLabel = 'Arial',
    config.font_names = 'Arial/Arial, Helvetica, sans-serif;' +  'Times New Roman/Times New Roman, Times, serif;' +  'Verdana;'
    config.emailProtection = 'encode',
    config.contentsLangDirection = 'ltr',
    config.language = 'de',
    config.contentsLanguage = 'de',
    config.toolbarLocation = 'top',
    config.browserContextMenuOnCtrl = false,
    config.extraPlugins = 'fileicon,video,youtube,templates',
    config.syntaxhighlightLangDefault = 'php',
    config.skin = 'minimalist',
    config.templates_replaceContent = false,
    config.toolbar_Full.push(['Code'])
    };

the above code is an example, I added here the line:
config.skin = 'minimalist', to use the skin "minimalist" which I downloaded before

d)
Last step:
clear your browsers cache
log into GetSimple admin
go to "Settings"
clear the GS cache
create a new page, you should see the new skin
|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#2
If you don't get your editor at all, you also have to check whether any of the additional editor-plugins which you might have added and defined in your configuration, should be updated or deleted.

I had to delete the "video"-plugin for example. After doing so I got my editor back!
|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
I forgot:

I also had to delete one line in my custom-config-file:

config.toolbar_Full.push(['Code'])

this seems to be incompatible as well
|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#4
It appears that ckeditor no longer exposes the toolbar_Full to config() for some reason. It might be built at runtime now.
News to me, thanks.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
How might I get CKE's "Templates" plugin working again with GS versions 3.3.9 & 3.3.10?
(It worked ok with the 3.3.8 + CKE patch plugin)

Is a custom config file with "config.extraPlugins = 'fileicon,video,youtube,templates'," now required for that?
Reply
#6
hmm, i am unfamiliar with that plugin , nothing regarding loading plugins should have changed, unless they are incompatible of course.

Got links ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
Well, this is a bit embarrassing but I decided to triple check my failed trouble shooting attempts before responding and this time one of them yielded results.  (I'd overlooked the ampersand in my earlier attempts. OOPS!)

In version 3.3.9 Some of the characters in the Templates'  js  (ckeditor\plugins\templates\templates\default.js) were changed to (forgive me for not knowing the correct terms) escape codes.  This altered default.js is included with 3.3.10 as well.
That is to say < was changed to \x3c and so on.  
Now, that I've restored the < > = and &amp;  the Templates' default.js is loading up just fine (I have not tried any custom templates yet.)
Reply




Users browsing this thread: 1 Guest(s)
Free HDTV Channels Residential Solar Panels