muhiddingithub / yii2-meditor
Yii2 publish editor using froala jquery
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-extension
This package is not auto-updated.
Last update: 2024-04-14 00:23:13 UTC
README
Yii2 publish editor using froala jquery
Installation
The preferred way to install this extension is through composer.
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.
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',
]
...
]
...
]