Open FedericoBenedetti1976 opened 6 years ago
Hi, I think that yii2 redactor version is outdated. If you put for example 'formatting' instead of 'format', it will work.
Try using this documentation: https://imperavi.com/assets/pdf/redactor-documentation-10.pdf
Hi this is my code:
<?= $form->field($model, 'body')->widget(\yii\redactor\widgets\Redactor::className(), [ 'clientOptions' => [ 'buttons' => ['format', 'lists', 'bold', 'italic', 'underline', 'horizontalrule', 'link', 'align'], ] ])->label("Body Message") ?>
But i can see only: bold,italic,underline . These buttons work well. Missing: format,lists,align Doesn't work: link,horizontalrule (when i press them nothing append). Only horizontalrule give this error in console: TypeError: $current.closest(...).size is not a function [redactor.js:6821:11]
What i'm missing? Thank's