THE best WYSIWYG editor with instant integration
This is the wrapper around the CKEditor.
Basic example of usage is this:
$this->widget( 'booster.widgets.TbCKEditor', array( 'name' => 'some_text_field' ) );
Note
We included the most feature-packed variant of CKEditor
.
If you want a simpler version, you have to trim it, removing unnecessary plugins on widget invocation.
Here's all configuration properties which you can set for TbCKEditor
.
Most of them are common to all form input widgets.
Property | Description |
---|---|
model CModel = null |
The data model associated with this widget.
See CInputWidget.model.
Either this property along with |
attribute string = null |
If you set the |
name string = null |
The value of |
value string = null |
Here you can force the initial value of the input.
If |
htmlOptions array = array() |
HTML attributes of the input tag itself. Please note that it is not the attributes of a wrapper tag around the input. See CInputWidget.htmlOptions. |
editorOptions array = array() |
Options for the original library.
This value will be JSON-encoded and fed to |
$this->widget( 'booster.widgets.TbCKEditor', array( 'name' => 'some_random_text_field', 'editorOptions' => array( // From basic `build-config.js` minus 'undo', 'clipboard' and 'about' 'plugins' => 'basicstyles,toolbar,enterkey,entities,floatingspace,wysiwygarea,indentlist,link,list,dialog,dialogui,button,indent,fakeobjects' ) ) );