CKEditor is a famous rich text editor for web. We made a customized version from CKEditor 4.6.2,
and included it into Efw as a tag. It must be used after the Client tag for jQuery and jQuery UI including.
<%@ taglib prefix="efw" uri="efw" %>
<head>
<efw:Client/>
</head>
<body>
<efw:CKEditor id="ckeditor1" width="800" height="300" readonly="false" lang="ja" pattern="standard" /> //or efw:ckeditor , efw:CKeditor , efw:Ckeditor , efw:ckEditor
</body>
Name | Required | Default | Description |
id | Yes | | The identity of the CKEditor tag. |
pattern | No | "standard" | The pattern of the CKEditor tag. [ basic | standard | full ]. |
height | No | "400" | The height of CKEditor tag. The unit is "px". |
width | No | "auto" | The width of CKEditor tag. The unit is "px". |
lang | No | "" | The language of CKEditor tag. It will detect the language automatically by default. |
readonly | No | "false" | The CKEditor tag is for reference or not. |
Calling | Returning | Description |
id . setPattern ( path ) | void | To set the pattern attribute. |
id . setHeight ( height ) | void | To set the height attribute. |
id . setWidth ( width ) | void | To set the width attribute. |
id . setReadOnly ( readonly ) | void | To set the readonly attribute. |
A hidden input with the id same to the CKEditor tag will be created to contain the CKEditor data.
var data = $("#ckeditor1").val();