A
A
Alexander2015-11-03 15:10:50
Yii
Alexander, 2015-11-03 15:10:50

Widget vova07/yii2-imperavi-widget not showing?

Everything according to the guide https://github.com/vova07/yii2-imperavi-widget.
composer.json :
",
"source": " https://github.com/yiisoft/yii2 "
},
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0 ",
"yiisoft/yii2": ">=2.0.5",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"vova07/yii2-imperavi-widget": "*"
},
view :

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use vova07\imperavi\Widget;
?>
<div class="portfolio-form">
    <?php $form = ActiveForm::begin(); ?>
    <?= $form->field($model, 'content_ru')->widget(Widget::classname(), [
        'settings' => [
            'lang' => 'ru',
            'minHeight' => 300,
            'pastePlainText' => true,
            'buttonSource' => true,
            'plugins' => [
                'clips',
                'fullscreen'
            ],
        ]
    ]);?>

From the beginning I thought that I had installed it in the wrong place, I tried to specifically cause an error <?= $form->field($model, 'content_rufyvfyv')->widget(Widget::classname(), [. An error occurred, no doubts, I installed where
But the widget is not displayed exactly What
adc39bbdbf6e44528a71bcaae47edafb.png
's wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Bay, 2015-11-03
@kawabanga

see js errors.

K
Kirill Arutyunov, 2015-11-04
@arutyunov

Do you have Asset Bundles enabled?
I had this after connecting Grunt - you just need to add a js / css editor to Grunt.

A
Alexander Lavysh, 2015-11-07
@LavyshAlexander

Had the same problem. If you load the page with an Ajax request, you need to call the renderAjax method in the controller instead of renderPartial.
Similar issue: https://github.com/kartik-v/yii2-widget-select2/is...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question