vova07 / yii2-imperavi-widget

Imperavi Redactor widget for Yii 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

formattingAdd not working

arun-maddheshia opened this issue · comments

$form->field($model, 'description')->widget(\yii\redactor\widgets\Redactor::className(), [
                        'clientOptions' => [
                            "minHeight" => 150,
                            "maxHeight" => 400,
                            "toolbarFixed" => true,
                        ]
                        "formattingAdd" => [
                            "red-p-add" => [
                                "title" => 'Red Block Add',
                                "args" => ['p', 'class', 'red-styled'],
                            ],
                            "blue-p-add" => [
                                'title' => 'Red Text',
                                //'tag' => 'p',
                                'class' => 'red'
                            ]
                        ],
                    ]
                ]);

Hi @arun-maddheshia ,
I think you've confused the repository.
Please be aware that this is the extension for Yii 2 version.