unimodern / yii2-ckeditor
Yii2 widget for ckeditor
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.5.0
- ckeditor/ckeditor: *
- yiisoft/yii2: *
- yiisoft/yii2-jui: *
This package is not auto-updated.
Last update: 2025-01-08 20:37:55 UTC
README
Disclaimer
This is forked from Edofre/yii2-ckeditor to release as stable
Installation
The preferred way to install this extension is through composer.
To install, either run
$ php composer.phar require unimodern/yii2-ckeditor "@dev"
or add
"unimodern/yii2-ckeditor": "@dev"
to the require
section of your composer.json
file.
Usage
ActiveForm usage with a model
<?= $form->field($model, 'body')->widget(\unimodern\ckeditor\CKEditor::className(), [ 'editorOptions' => [ 'language' => 'nl', ], ]) ?>
Usage without model
<?= \unimodern\ckeditor\CKEditor::widget([ 'name' => 'content', 'editorOptions' => [ 'height' => '400px', ], ]) ?>