Skip to content
Simple WYSIWYG editor for Yii2
PHP
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json

README.md

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.9 - Fixed widget ID and init after Pjax reloading
  • v.1.0.8 - Update WYSIWYG editor
  • v.1.0.7 - Fixed deprecated class declaration
  • v.1.0.6 - Update Yii2 version
You can’t perform that action at this time.