kotchuprik/yii2-medium-widget Medium editor widget for Yii2

wysiwygeditormediumredactor

yii2-medium-widget

This widget is the wrapper for the MediumEditor.

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'],
    ],
]);

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

  • 1.108 July 2016
  • 1.015 August 2014

Comments



1.1 is the latest of 2 releases



MIT license
Stats
2 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
414 total downloads