CKEditor is a ready-for-use HTML text editor designed to simplify web content creation. It’s a WYSIWYG editor that brings common word processor features directly to your web pages. Enhance your website experience with our community maintained editor.
The preferred way to install this extension is through composer.
composer require 2amigos/yii2-ckeditor-widget:~1.0
"2amigos/yii2-ckeditor-widget" : "~1.0"
to the require section of your
Skins & Plugins
This widget works with default’s
dev-full/stable branch of CKEditor, with a set of plugins and skins. If you wish to configure a different skins or plugins that the one proposed, you will have to download them separately and configure the widgets
clientOptions attribute accordingly.
The CKEditor comes with three preset: basic, advanced and full.
Using a model with a basic preset:
<?= $form->field($model, 'text')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'preset' => 'basic'