wdmg/yii2-editor

WYSIWYG editor for Yii2 based on Bootstrap 3

Installs: 36

Dependents: 4

Suggesters: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

1.0.6 2019-06-04 22:44 UTC

README

Progress Github all releases GitHub version Progress GitHub license

Yii2 WYSIWYG Editor

Simple WYSIWYG editor for Yii2 based on Bootstrap 3

Requirements

Installation

To install the widget, run the following command in the console:

$ composer require "wdmg/yii2-editor"

Usage

Example of standalone widget:

<?php

use wdmg\widgets\Editor;
...

echo Editor::widget([
    'model' => $model,
    'attribute' => 'message',
    'options' => [
       ...
    ],
    'pluginOptions' => [
        ...
    ]
    ...
]);

?>

Example of use with ActiveForm:

<?php

use wdmg\widgets\Editor;
...

$form = ActiveForm::begin();
...
echo $form->field($model, 'message')->widget(Editor::className(), [
    'options' => [
        ...
    ],
    'pluginOptions' => [
        ...
    ]
    ...
]);
...
ActiveForm::end();

?>

Status and version

  • v.1.0.6 - Update Yii2 version