SCEditor
SCEditor
Extension yii for library SCEditor
Installation
"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 Extension
License SCEditor
May 31, 2020