SCEditor
SCEditor

Extension yii for library SCEditor

Installation
The preferred way to install this extension is through composer.

Either add

    "require": {
    "keygenqt/keygenqt/yii2-sceditor": "*"
}
of your composer.json file.
Example form
Example form code
    <?php $form = ActiveForm::begin(); ?>

<?= $form->errorSummary($model); ?>

<?= $form->field($model, 'editor')->widget(SCEditor::class, [
    'jsOption' => [
        'height' => 300,
        'resizeWidth' => false,
        'style' => 'minified/jquery.sceditor.default.min.css',
    ]
]) ?>

<?= $form->field($model, 'integer')->textInput()->input('text', ['placeholder' => 'Integer']) ?>

<?= $form->field($model, 'email')->textInput()->input('email', ['placeholder' => 'Email']) ?>

<?= Html::submitButton('Submit', ['class' => 'btn btn-primary']) ?>

<?php ActiveForm::end(); ?>
License SCEditor
May 31, 2020