Renders a CKEditor WYSIWYG text editor plugin widget., (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
composer require shifrosauna/yii2-ckeditor-with-pgrfilemanager:dev-master
or add, (*4)
"shifrosauna/yii2-ckeditor-with-pgrfilemanager" : "dev-master"
to the require section of your application's composer.json
file., (*5)
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 widget's clientOptions
attribute accordingly., (*6)
Usage
The library comes with two widgets: CKEditor
and CKEditorInline
. One is for classic edition and the other for inline
editing respectively., (*7)
Using a model with a basic preset:, (*8)
use dosamigos\ckeditor\CKEditor;
= $form->field($model, 'text')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'preset' => 'basic'
]) ?>
Using inline edition with basic preset:, (*9)
use dosamigos\ckeditor\CKEditorInline;
'basic']);?>
This text can be edited now :)
Please, check the CKEditor plugin site documentation for further information about its configuration options., (*10)
Contributing
Please see CONTRIBUTING for details., (*11)
Web development has never been so fun!, (*12)
yii2-ckeditor-with-pgrfilemanager