2011-03-30, 18:09:50
Connie, what do you want to configure?
I have most of my configuration in gsconfig.php, only the styles are outside - this took a lot of trial and error:
styles.js looks like this to have a styles drop down for the editor to style paragraphs (and code fragments):
Now the content in the page editor looks (nearly) exactly like the real site.
I have most of my configuration in gsconfig.php, only the styles are outside - this took a lot of trial and error:
Code:
define('GSEDITOROPTIONS',
" toolbar: [
['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', 'Outdent', 'Indent'],
['Table', 'Link', 'Unlink', 'Image', 'RemoveFormat', 'Source'],
'/',
['Styles','Format'],
],
stylesCombo_stylesSet: 'my_styles:/theme/Choice/styles.js',
contentsCss: '/theme/Choice/default.css',
bodyId: 'content'
");
styles.js looks like this to have a styles drop down for the editor to style paragraphs (and code fragments):
Code:
CKEDITOR.addStylesSet( 'my_styles',
[
// Block Styles
{ name : 'Normal', element : 'p', attributes : { } },
{ name : 'Motto1', element : 'p', attributes : { 'class' : 'motto1' } },
{ name : 'Motto2', element : 'p', attributes : { 'class' : 'motto2' } },
{ name : 'Motto3', element : 'p', attributes : { 'class' : 'motto3' } },
{ name : 'Rechts', element : 'p', attributes : { 'class' : 'rfloat' } },
{ name : 'Links', element : 'p', attributes : { 'class' : 'lfloat' } },
// Inline Styles
{ name : 'Code', element : 'span', attributes : { 'class' : 'code' } },
]);
Now the content in the page editor looks (nearly) exactly like the real site.