yii2-medium-widget This widget is the wrapper for the MediumEditor clone (https://github.com/daviferreira/medium-editor).

  1. Usage
  2. Resources

Usage

Widget
echo \kotchuprik\medium\Widget::widget([
    'model' => $model,
    'attribute' => 'attribute',
]);
Widget with settings
echo \kotchuprik\medium\Widget::widget([
    'model' => $model,
    'attribute' => 'attribute',
    'theme' => 'bootstrap',
    'settings' => [
        'buttons' => ['bold', 'italic', 'quote'],
    ],
]);
ActiveForm widget
echo $form->field($model, 'attribute')->widget(\kotchuprik\medium\Widget::className());
ActiveForm widget with settings
echo $form->field($model, 'attribute')->widget(\kotchuprik\medium\Widget::className(), [
    'theme' => 'bootstrap',
    'settings' => [
        'buttons' => ['bold', 'italic', 'quote'],
    ],
]);

Resources

2 0
2 followers
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: Constantin Chuprik
Created on: Aug 15, 2014
Last updated: 9 years ago

Related Extensions