Changeset 1801

Show
Ignore:
Timestamp:
2008-03-25 20:23:32 (5 months ago)
Author:
th-schwarz
Message:

docu

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor.Java/branches/2.4/src/site/apt/fckeditor-properties.apt

    r1768 r1801  
    77* Configuration properties 
    88 
    9    This table lists all the configurable properties for the integration pack. 
    10    The default properties are defined in the 
    11    <<<default.properties>>> file included in the library jar. 
     9   All properties are optional. In the meaning of 'Convention over Configuration'  
     10   only the properties, of which the default isn't requested, have to be set. 
    1211 
    13    For the whole web application, create a custom properties file 
    14    named <<<fckeditor.properties>>> and place it in the application 
    15    classpath (typically into <<<WEB-INF/classes>>> folder). 
     12   There are two ways to overwrite the default properties:  
    1613    
    17    Include in your custom properties file only the properties you need 
    18    to change. If a property is not defined in the user file, the 
    19    default from the <<<default.properties>>> included in the jar is used. 
     14   [[1]] A common Java properties file, e.g.: 
     15    
     16   Create a properties file named <<<fckeditor.properties>>> and place it in the  
     17   root of the application classpath (typically into <<<WEB-INF/classes>>> folder). 
     18 
     19+-------------------------------------------------------+ 
     20  fckeditor.toolbarSet = Silver 
     21  connector.sessionDataImpl=net.fckeditor.impl.BasicSessionData 
     22... 
     23+-------------------------------------------------------+ 
     24 
     25   [[2]] In Java, calling the PropertiesHolder: 
     26    
     27+-------------------------------------------------------+ 
     28... 
     29  import net.fckeditor.handlers.PropertiesLoader; 
     30... 
     31  PropertiesLoader.setProperty("fckeditor.toolbarSet", "Silver"); 
     32  PropertiesLoader.setProperty("connector.sessionDataImpl", "net.fckeditor.impl.BasicSessionData"); 
     33... 
     34+-------------------------------------------------------+    
     35    
     36   [] 
     37    
     38   As you see, in both ways the name of the properties are equal. 
     39   The tables below lists all the configurable properties for the integration pack. 
     40    
    2041 
    2142* FCKeditor