Last updated by admin 3 years ago
?? - richtTextEditor
?? Description
A Rich Text Editor component that by default uses fckeditor with a basepath of /fckeditor. ?????/fckeditor?fckeditor??????????????????????????Be sure to include the fckeditor.js Script in the head of your page: fckeditor.js ??????????????????????????????<!-- FCKEditor JavaScript --> <script type="text/javascript" src="/<WEBROOT>/js/FCKeditor/fckeditor.js"></script>
????? Parameters
- name (??) - ??????????????????the name of the form field to bind to
- basepath (??) - ?????FCKeditor???????/FCKeditor???????the basepath of the unzipped FCKeditor, /FCKeditor by default. You might want to unpack the zip to web-app/js/FCKeditor to keep your web app root organized
- toolbar (??) - ?????????????"Default"(??) "Basic" (basic features such as bold, italic, lists, URLs)????????????FCKeditor??????fckconfig.js ??????????????????????????????????
- height (??) - WYSIWIG?????????The heigth in pixels of the WYSIWIG editor to create
- value (??) - ??????????Initial value of the editor.
? Examples
Example for an editor with a "Basic" ToolbarSet: "Basic"??????????????????<g:richTextEditor name="content" value="${textElement?.content}" basepath="js/FCKeditor/" toolbar="Basic" height="150" />
?? Further Information
- FCKEditor Homepage - http://www.fckeditor.net/
- File grails-app/taglib/UITagLib for the implementation



