wdmg/yii2-editor

WYSIWYG editor for Yii2 based on Bootstrap 3

Installs: 81

Dependents: 5

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

1.0.7 2019-12-10 18:11 UTC

This package is auto-updated.

Last update: 2020-02-10 18:28:11 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::class, [
    'options' => [
        ...
    ],
    'pluginOptions' => [
        ...
    ]
    ...
]);
...
ActiveForm::end();

?>

Status and version

  • v.1.0.7 - Fixed deprecated class declaration
  • v.1.0.6 - Update Yii2 version