Changeset 2155
- Timestamp:
- 2008-07-03 08:56:39 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor.Java/trunk/src/site/apt/velocity_freemarker.apt
r2152 r2155 39 39 The main class that builds the html for the editor is {{{java-core/apidocs/net/fckeditor/fckeditor.html}<<<net.fckeditor.FCKeditor>>>}}. 40 40 We propose to write a wrapper object to initialize the FCKeditor object.\ 41 Avery simple example:41 Have a look at this very simple example: 42 42 43 43 +------------------------------------------------------------------------------+ … … 59 59 +------------------------------------------------------------------------------+ 60 60 61 Let's assume that you add a <<<FCKeditorWrapper>>> instance to your context 62 objects, then you just need the following minimal template example (Velocity): 61 Let's assume you add a <<<FCKeditorWrapper>>> instance named 'DefaultEditor' 62 to your context objects, then you just need the following minimal template 63 example (Velocity): 63 64 64 65 +------------------------------------------------------------------------------+ 65 <script language="javascript" type="text/javascript" src="/fckeditor/fckeditor.js"></script>66 66 <form method="post" action="[servlet path]"> 67 67 $editor.get("DefaultEditor", "Some text");