User Tools

Site Tools


how_to:editor_configuration_more_options

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
how_to:editor_configuration_more_options [2011/11/26 10:40]
Connie [Collapse Toolbar]
how_to:editor_configuration_more_options [2013/04/19 15:04] (current)
Line 15: Line 15:
  
 The editor skin defines the graphic set which is used for the editor area. The editor skin defines the graphic set which is used for the editor area.
 +
 GetSimple ships with one skin, which sits in the directory //your getsimple installation/​admin/​template/​js/​ckeditor/​skins/​getsimple// ​ GetSimple ships with one skin, which sits in the directory //your getsimple installation/​admin/​template/​js/​ckeditor/​skins/​getsimple// ​
  
Line 25: Line 26:
 This example shows the //advanced toolbar// + the skin //​v2//​. ​ This example shows the //advanced toolbar// + the skin //​v2//​. ​
   - CKeditor comes with three skins: //kama//, //​office2003//​ and //v2//. GetSimple does not use these, but uses it's own skin, //​getsimple//​   - CKeditor comes with three skins: //kama//, //​office2003//​ and //v2//. GetSimple does not use these, but uses it's own skin, //​getsimple//​
-  - If you haven'​t done yet, download CKEditor from [[http://​ckeditor.com/​download]] and unpack it to your local harddisk. Open the directory //​ckeditor/​skins//​ and upload the skin which you want to use to your GetSimple-directory at the server: //​your_getsimple_installation/​admin/​template/​js/​ckeditor/​skins//​+  - If you haven'​t done yet, download CKEditor from [[http://​ckeditor.com/​download]] and unpack it to your local harddisk.\\ Open the directory //​ckeditor/​skins//​ and upload the skin which you want to use to your GetSimple-directory at the server: //​your_getsimple_installation/​admin/​template/​js/​ckeditor/​skins//​
   - edit the configuration,​ //​gsconfig.php//​ and re-upload it to your server.   - edit the configuration,​ //​gsconfig.php//​ and re-upload it to your server.
  
Line 35: Line 36:
 ===== Enter Mode: Paragraph or LineBreak? ===== ===== Enter Mode: Paragraph or LineBreak? =====
  
-You can define the behaviour of the ENTER KEY. The CKEditor-documentation explains: //Sets the behavior for the ENTER key. It also dictates other behaviour rules in the editor, like whether the <br> element is to be used as a paragraph separator when indenting text.//+You can define the behaviour of the ENTER KEY.  
 + 
 +The CKEditor-documentation explains: //Sets the behavior for the ENTER key. It also dictates other behaviour rules in the editor, like whether the <br> element is to be used as a paragraph separator when indenting text.//
  
 You can define the behaviour for the ENTER Key and the SHIFT-ENTER Key. You can define the behaviour for the ENTER Key and the SHIFT-ENTER Key.
Line 41: Line 44:
   - BR: lines are broken with <br> elements   - BR: lines are broken with <br> elements
   - DIV: new <div> blocks are created   - DIV: new <div> blocks are created
 +
 Edit your //​gsconfig.php//​ and re-upload it to the server. Edit your //​gsconfig.php//​ and re-upload it to the server.
   define('​GSEDITOROPTIONS',"​skin : '​v2', ​   define('​GSEDITOROPTIONS',"​skin : '​v2', ​
Line 166: Line 170:
  
  
-There are two options which are necessary:+==== Necessary modifications====
  
   - Enable the feature (''​scayt_autoStartup:​true''​)   - Enable the feature (''​scayt_autoStartup:​true''​)
   - Define the language for the spellchecker (''​scayt_sLang:'​de_DE'''​)\\ The default language is en_US, so you should define the language when you need another language. \\ Possible values for the languages are: //en_US, en_GB, pt_BR, da_DK, nl_NL, en_CA, fi_FI, fr_FR, fr_CA, de_DE, el_GR, it_IT, nb_NO, pt_PT, es_ES, sv_SE//​. ​   - Define the language for the spellchecker (''​scayt_sLang:'​de_DE'''​)\\ The default language is en_US, so you should define the language when you need another language. \\ Possible values for the languages are: //en_US, en_GB, pt_BR, da_DK, nl_NL, en_CA, fi_FI, fr_FR, fr_CA, de_DE, el_GR, it_IT, nb_NO, pt_PT, es_ES, sv_SE//​. ​
 +  - add the spellchecker-symbols to the toolbar\\ There are 2 symbols: the symbol ''​Spellchecker''​ opens the text in a dialogue window, allows to choose the language to check with and to correct the text, the second symbol, ''​Scayt''​ opens a pop-up-dialogue to activate / deactivate the spellchecker and to set some options.
  
-So add to the gsconfig.php:+So add //​SCAYT-options//​ to editor-options and //'​Scayt'// ​to the toolbar in gsconfig.php
  
   # WYSIWYG Editor Options   # WYSIWYG Editor Options
-  define('​GSEDITOROPTIONS',"​skin : 'v2' +  define('​GSEDITOROPTIONS',"​scayt_autoStartup:​true,​ scayt_sLang:'de_DE'"); 
-  ​enterMode: CKEDITOR.ENTER_P,​ +   
-  ​shiftEnterMode : CKEDITOR.ENTER_BR+  ​# WYSIWYG toolbars (advancedbasic or [custom config]) 
-  ​fontSize_defaultLabel : '11px', +  ​define('GSEDITORTOOL',"['Source','​-','​Cut'​,'​Copy'​,'​Paste'​
-  font_defaultLabel : 'Verdana', +  'PasteText','​PasteFromWord','​-','​Undo'​
-  font_names : 'Arial;Times New Roman;​Verdana', +  'Redo','​Find','​Replace','​-','​SelectAll','​RemoveFormat','​SpellChecker','​Scayt'​],'/',​
-  toolbarCanCollapse : true, +
-  colorButton_enableMore : true, +
-  entities : false+
-  ​contentsLangDirection : 'ltr', +
-  emailProtection : 'encode', +
-  scayt_autoStartup:​true+
-  ​scayt_sLang:​'de_DE'+
   ");   ");
 +  ​
 +**Attention:​** ​
 +
 +There is a bug in CKEditor SpellChecker'​s plugin which you should be aware of:
 +
 +if spellchecker is enabled and **the cursor is placed in a list** (whether unordered or ordered list), do not switch to SourceCode mode!
 +When switching back your list will be "​destroyed"​ because the spellchecker plugin adds superfluous list-elements to the source code
 +
 +It's tested with the newest CKEditor version (3.6.2), the bug is still there
 +this is no GetSimple bug, so we have to wait until that bug is fixed in CKEditor
 ---- ----
how_to/editor_configuration_more_options.1322304013.txt.gz · Last modified: 2013/04/19 14:56 (external edit)