Yii2-wysiwyg demo

This is a demo of Yii2-wysiwyg, a wrapper for the excellent Imperavi Redactor 'What-you-see-is-what-you-get' editor for the Yii framework 2.0.

<?php
use sjaakp\wysiwyg\Wysiwyg;

<?= Wysiwyg::widget([
    'name' => 'my_wysiwyg',
    'value' => 'The scholar meets...',
    'redactorOptions' => [
        'plugins' => [ 'fontcolor', 'inlinestyle' ],
        'focus' => true,
        'styles' => false
    ],
    'options' => [ 'class' => 'mb-4']
]) ?>