2017 © Pedro Peláez
 

library yii2-ueditor

Yii2 widget for ueditor

image

eddycjy/yii2-ueditor

Yii2 widget for ueditor

  • Tuesday, December 5, 2017
  • by EDDYCJY
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-ueditor

Requirements

  • PHP >= 5.4.0
  • Composer
  • Yii2

Installation

``` sh composer require eddycjy/yii2-ueditor "@dev", (*1)


# Configuration ## Use File Add to configs file - yii-basic : config/web.php - yii-advanced: common/config/main.php ``` php 'modules' => [ 'ueditor' => [ 'class' => 'Ueditor\UeditorModule', ], ],

or change ue-configs, upload folder root_path @app/web, (*2)

``` 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' => '', ], ],, (*3)




# Usage Config view/form ``` php <?= $form->field($model, 'content')->widget(\Ueditor\Widgets\Ueditor::className()) ?>

or widget, (*4)

``` php = \Ueditor\Widgets\Ueditor::widget([]) ?>, (*5)


or config advanced ueditor reference [Docs](http://fex.baidu.com/ueditor/#start-config) ``` php <?= \Ueditor\Widgets\Ueditor::widget([ 'id' => 'content', 'options' => [ 'initialFrameWidth' => 666, ], ]) ?>

License

MIT, (*6)

The Versions

05/12 2017

dev-master

9999999-dev

Yii2 widget for ueditor

  Sources   Download

MIT

The Requires

 

by Avatar EDDYCJY

yii2 ueditor

05/11 2017

1.0.0

1.0.0.0

Yii2 widget for ueditor

  Sources   Download

MIT

The Requires

 

by Avatar EDDYCJY

yii2 ueditor