Japanese Tag - richTextEditor

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 ??????????????????????????????????
the toolbarset to use. Preconfigured in FCKEditor is "Default" (all features) and "Basic" (basic features such as bold, italic, lists, URLs). You can create your own ToolbarSet by adding to the file fckconfig.js in the FCKeditor folder
  • 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