Changes between Version 6 and Version 7 of CkEditorPlugin


Ignore:
Timestamp:
Nov 16, 2011 9:06:47 AM (2 years ago)
Author:
framay
Comment:

added section Configuration; added option for editor_type

Legend:

Unmodified
Added
Removed
Modified
  • CkEditorPlugin

    v6 v7  
    1414The plugin has 3 modes of integration, determined by the `[ckeditor] editor_type` option: 
    1515|| `html_wrapper` || CKEditor with HTML output wrapped in html-processor || 
    16 || `full_integration` || CKEditor with TracWiki output (experimental, under development) || 
     16|| `full_integration` || CKEditor with TracWiki output ('''experimental''') || 
     17|| `only_ticket` || CKEditor with TracWiki output for ticket fields ('''experimental'''); ''leaves wiki editing as in Trac standard'' || 
     18|| `only_wiki` || CKEditor with TracWiki output for wiki pages ('''experimental'''); ''leaves ticket editing as in Trac standard'' || 
    1719|| `none` || No integration - plain old textarea || 
    1820 
     
    6062}}} 
    6163 
     64 
     65== Configuration == 
     66 
    6267Enable it from the Plugins section of the Administration panel, or by adding the following to the `[components]` section of your `trac.ini`: 
    6368{{{ 
     
    6772}}} 
    6873 
    69 The following options can be specified in the `[ckeditor]` section of your `trac.ini` (default values shown): 
     74The following options can be specified in the `[ckeditor]` section of your `trac.ini`: 
     75 
     76|| '''option''' || '''description''' || '''possible values''' || 
     77|| code_styles || List of code styles, which should be processed by CKEditor and displayed in CKEditor dialog 'insert code'. || ''list of [http://pygments.org/ pygments-styles]'' || 
     78|| editor_type || Type of integrated editor || full_integration, only_ticket, only_wiki, html_wrapper, none || 
     79|| editor_source || Path to CKEditor 3.6.x javascript source. || ''valid path'' || 
     80 
     81You can also type `[[TracIni(ckedior)]]` in any Wiki-Page to get a list of possible options and their descriptions; see also description in plugins-panel. 
     82 
     83 
     84== Example == 
     85 
     86Sample configuration (default values shown): 
    7087{{{ 
    7188#!ini 
    7289[ckeditor] 
    73 editor_type = html_wrapper # mode of integration, as explained above 
    74 editor_source = sites/js/ckeditor/ckeditor.js # The URL where CKEditor was installed (the default matches the example above for deploying CKEditor) 
     90code_styles = cpp, csharp, java, js, python, sql, default, xml 
     91editor_type = full_integration 
     92editor_source = sites/js/ckeditor/ckeditor.js 
    7593}}} 
    76  
    77 == Example == 
    78  
    7994 
    8095== Recent Changes ==