PHP code example of dungphanxuan / yii2-lepture-editor
1. Go to this page and download the library: Download dungphanxuan/yii2-lepture-editor 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/ */
dungphanxuan / yii2-lepture-editor example snippets
echo dungphanxuan\leptureeditor\LeptureEditorWidget::widget([
'name' => 'content',
'options'=>[// html attributes
'id'=>'content'
],
'leptureOptions' => [
'toolbar' => false
]
]);;
echo dungphanxuan\leptureeditor\LeptureEditorWidget::widget([
'model' => $model,
'attribute' => 'content',
'options'=>[// html attributes
'id'=>'content'
],
'leptureOptions' => [
'toolbar' => false
]
]);;
php composer.phar