PHP code example of eddycjy / yii2-ueditor
1. Go to this page and download the library: Download eddycjy/yii2-ueditor 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/ */
eddycjy / yii2-ueditor example snippets php
'modules' => [
'ueditor' => [
'class' => 'Ueditor\UeditorModule',
],
],
php
'modules' => [
'ueditor' => [
'class' => 'Ueditor\UeditorModule',
'imageUrlPrefix' => '',
'imagePathFormat' => '/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}',
'scrawlUrlPrefix' => '',
'scrawlPathFormat' => '',
'snapscreenUrlPrefix' => '',
'snapscreenPathFormat' => '',
'catcherUrlPrefix' => '',
'catcherPathFormat' => '',
'videoUrlPrefix' => '',
'videoPathFormat' => '',
'fileUrlPrefix' => '',
'filePathFormat' => '',
'imageManagerUrlPrefix' => '',
'imageManagerListPath' => '',
'fileManagerUrlPrefix' => '',
'fileManagerListPath' => '',
],
],
php
<?= $form->field($model, 'content')->widget(\Ueditor\Widgets\Ueditor::className())
php
<?= \Ueditor\Widgets\Ueditor::widget([])
php
<?= \Ueditor\Widgets\Ueditor::widget([
'id' => 'content',
'options' => [
'initialFrameWidth' => 666,
],
])