Download the PHP package paulobrandit/yii2-summernotee without Composer
On this page you can find all versions of the php package paulobrandit/yii2-summernotee. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download paulobrandit/yii2-summernotee
More information about paulobrandit/yii2-summernotee
Files in paulobrandit/yii2-summernotee
Download paulobrandit/yii2-summernotee
More information about paulobrandit/yii2-summernotee
Files in paulobrandit/yii2-summernotee
Vendor paulobrandit
Package yii2-summernotee
Short Description Yii2 Summernote widget. Super simple WYSIWYG editor on Bootstrap
License MIT
Homepage https://github.com/marqu3s/yii2-summernote
Package yii2-summernotee
Short Description Yii2 Summernote widget. Super simple WYSIWYG editor on Bootstrap
License MIT
Homepage https://github.com/marqu3s/yii2-summernote
Please rate this library. Is it a good library?
Informations about the package yii2-summernotee
Yii2 Summernote widget. Summernote 0.8.0 (forked by paulobrandit to add support for yii\bootstrap4\Bootrstrap
Yii2 Summernote widget. Super simple WYSIWYG editor on Bootstrap
Installation
Composer
The preferred way to install this extension is through Composer.
Either run
php composer.phar require marqu3s/yii2-summernote "dev-master"
or add
"marqu3s/yii2-summernote": "dev-master"
to the require section of your composer.json
Usage
<?= $form->field($model, 'content')->widget(Summernote::className(), [
'clientOptions' => [
...
]
]); ?>
or
<?= Summernote::widget([
'name' => 'editor_id',
'clientOptions' => [
...
]
]); ?>
Uploading directly to Amazon S3
To upload images inserted into the editor to S3, you have to configure a few options.
<?= Summernote::widget([
'uploadToS3' => true,
'signEndpoint' => '/<controller>/sign-aws-request?v4=true',
'bucket' => 'S3-BUCKET-NAME',
//'folder' => '',
'folder' => new \yii\web\JsExpression("function() { return $('#aFormFieldId').val() + '/'; }"),
'filenamePrefix' => "'{$model->id}-'",
'maxFileSize' => 1024000,
'expiration' => gmdate('Y-m-d\TH:i:s.000\Z', strtotime('+5 minutes')),
'clientOptions' => [
...
]
]); ?>
Then, in your controller, configure an action as the signEndpoint to sign the POST request that will upload the image.
See clientOptions
Original Author
Aleksandr Zelenin, e-mail: [email protected]
Updates by
João Marques, e-mail: [email protected]
All versions of yii2-summernotee with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
~2
bower-asset/codemirror Version @stable
bower-asset/summernote Version 0.*
bower-asset/codemirror Version @stable
bower-asset/summernote Version 0.*
The package paulobrandit/yii2-summernotee contains the following files
Loading the files please wait ....