Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
38 lines (35 loc) · 1.98 KB

tag.ckeditor.md

File metadata and controls

38 lines (35 loc) · 1.98 KB

CKEditor Tag

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>

Attributes

NameRequiredDefaultDescription
idYesThe identity of the CKEditor tag.
patternNo"standard"The pattern of the CKEditor tag. [ basic | standard | full ].
heightNo"400"The height of CKEditor tag. The unit is "px".
widthNo"auto"The width of CKEditor tag. The unit is "px".
langNo""The language of CKEditor tag. It will detect the language automatically by default.
readonlyNo"false"The CKEditor tag is for reference or not.

Methods

CallingReturningDescription
id . setPattern ( path )voidTo set the pattern attribute.
id . setHeight ( height ) voidTo set the height attribute.
id . setWidth ( width ) voidTo set the width attribute.
id . setReadOnly ( readonly ) voidTo 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();