dev-master
9999999-devCKEditor and KCFinder
GPL-3.0
The Requires
by Ahamad Jehdu
extension yii2
0.1.0
0.1.0.0CKEditor and KCFinder
GPL-3.0
The Requires
by Ahamad Jehdu
extension yii2
Wallogit.com
2017 © Pedro Peláez
CKEditor and KCFinder
CKEditor and KCFinder, (*1)
CKEditor and KCFinder, (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
composer require firdows/yii2-mkeditor "*"
or add, (*5)
"firdows/yii2-mkeditor": "*"
to the require section of your composer.json file., (*6)
Once the extension is installed, simply use it in your code by :, (*7)
Convert textarea to CKEditor, (*8)
<?php
//CKEditor
echo $form->field($model, 'detail')->widget(
\firdows\mkeditor\CKEditor::className(),
[
'uploadDir' => '/var/www/public_html/UserFiles',
'uploadURL' => '/UserFiles/',
'filemanager'=>true, //true = enabled kcfinder, false = disabled kcfinder
'preset'=>'full' //toolbar -> basic, standard, full
]
)->label(false); ?>
Example
, (*9)
registerJs("
var content = '';
CKEDITOR.on('instanceCreated', function (e) {
content = e.editor.getData();
e.editor.on('change', function (ev) {
content = ev.editor.getData();
});
});
"); ?>
field($model, 'detail')->widget(
\firdows\mkeditor\CKEditor::className(),
[
'uploadDir' => '/var/www/public_html/UserFiles',
'uploadURL' => '/UserFiles/',
'filemanager'=>true, //true = enabled kcfinder, false = disabled kcfinder
'preset'=>'full', //toolbar -> basic, standard, full
'onChange' => true
]
)->label(false); ?>
Example
, (*10)
Jehdu Ahmad, (*11)
CKEditor and KCFinder
GPL-3.0
extension yii2
CKEditor and KCFinder
GPL-3.0
extension yii2