yiidoc / yii2-redactor

Extension Redactor WYSIWYG for Yii2 framework
BSD 3-Clause "New" or "Revised" License
187 stars 87 forks source link

Some buttons missing, other doesn't work #79

Open FedericoBenedetti1976 opened 6 years ago

FedericoBenedetti1976 commented 6 years ago

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

tbntdima commented 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