PHP code example of mhayajneh / yii2-ckeditor5-word
1. Go to this page and download the library: Download mhayajneh/yii2-ckeditor5-word library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mhayajneh / yii2-ckeditor5-word example snippets
use sangroya\ckeditor5\CKEditor;
<?= $form->field($model, 'text')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
])
use sangroya\ckeditor5\CKEditor;
<?= $form->field($model, 'text')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'uploadUrl' => 'site/upload', //this will be the url where you want to ckeditor send the post request with file data
])
php composer.phar