https://github.com/muhiddingithub/yii2-meditor
Yii2 publish editor using froala jquery
https://github.com/muhiddingithub/yii2-meditor
Last synced: about 1 year ago
JSON representation
Yii2 publish editor using froala jquery
- Host: GitHub
- URL: https://github.com/muhiddingithub/yii2-meditor
- Owner: muhiddingithub
- License: mit
- Created: 2017-10-26T06:28:29.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-26T06:47:25.000Z (almost 9 years ago)
- Last Synced: 2025-05-13T12:14:00.295Z (about 1 year ago)
- Language: JavaScript
- Size: 646 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yii2-meditor
Yii2 publish editor using froala jquery
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require muhiddingithub/yii2-meditor "dev-master"
```
or add
```
"muhiddingithub/yii2-meditor": "dev-master"
```
to the require section of your `composer.json` file.
[Jquery source](https://www.froala.com/wysiwyg-editor)
Usage
-----
with ActiveForm
```
$form->field($model, 'body')->widget(\muhiddin\meditor\FroalaEditor::className(), [
'options' => [
'height' => '400px',
'imageManagerPageSize' => 2
]
])
```
Simple Usage
-----
```
echo \muhiddin\meditor\FroalaEditor::widget([
'name'=>'name',
'value'=>'',
'form'=>$form,// if has $form ActiveForm, else not set
'model'=>$model, // if has $model extend Model, else not set
'options' => [
'height' => '400px',
'imageManagerPageSize' => 2
]
])
```
config
-----
```
'components' => [
...
'modules'=>[
...
'meditor' => [
'class' => 'muhiddin\meditor\Module',
]
...
]
...
]
```