2amigos / yii2-ckeditor-widget

CKEditor WYSIWYG widget for Yii2.
https://2amigos.us/open-source/ckeditor-widget
Other
172 stars 112 forks source link

Align button not showing up #141

Open thiagomoraesp opened 5 years ago

thiagomoraesp commented 5 years ago

Hi guys, thanks for the amazing module. I'm trying to show up a text align button in my textarea with CKEDITOR, but it doesn't show up.

the code is the following: ` <?= $form->field($model, 'texto')->widget(CKEditor::className(), [

    'options' => [
        'rows' => 20,

        ],
    'preset' => 'custom',

    'clientOptions' => [

        'height' => 400,
        'toolbarGroups' => [
            ['name' => 'undo'],
            ['name' => 'styles'],
            ['name' => 'paragraph', 'groups' => [ 'list', 'indent', 'align' ]],

            ['name' => 'basicstyles', 'groups' => ['basicstyles', 'cleanup']],

        ],
        'removeButtons' => 'Subscript,Superscript,Flash,Table,HorizontalRule,Smiley,SpecialChar,PageBreak,Iframe,Styles',
        'removePlugins' => 'elementspath',
        'resize_enabled' => false
    ]

]);?>`

Others buttons all work, but the align option that i need no :'( Thank you :)

tonydspaniard commented 5 years ago

@thiagomoraesp can you show the resulting javascript?

libedux commented 5 years ago

@thiagomoraesp can you show the resulting javascript?

I have the same problem, I just removed old package, installed new one and still couldn't get the alignment work. There is no error show up on console.

thiagomoraesp commented 5 years ago

I installed a older version and it works fine.