Installation ¶
The preferred way to install this extension is through composer.
Either run
php composer.phar require franciscomaya/yii2-sceditor:dev-master
or add
"franciscomaya/yii2-sceditor" : "dev-master"
to the require section of your composer.json
file.
Usage ¶
Once the extension is installed, simply use it in your code by :
use franciscomaya\sceditor\SCEditor;
<?= $form->field($model, 'text')->widget(SCEditor::className(), [
'options' => ['rows' => 6],
'clientOptions' => [
'plugins' => 'bbcode',
]
]) ?>
Further Information ¶
Please, check the SCEditor plugin site documentation for further information about its configuration options.
I have a trouble with Jquery,
Uncaught TypeError: url.indexOf is not a function
at jQuery.fn.init.jQuery.fn.load (jquery.js:10091) at K (<anonymous>:2:1917) at new o (<anonymous>:2:24225) at HTMLTextAreaElement.<anonymous> (<anonymous>:2:820) at Function.each (jquery.js:367) at jQuery.fn.init.each (jquery.js:202) at jQuery.fn.init.a.fn.sceditor (<anonymous>:2:660) at <anonymous>:13:29 at DOMEval (jquery.js:124) at domManip (jquery.js:5945)
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.