2amigos / yii2-ckeditor-widget

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

no button to aligning the contents #110

Closed litoxy closed 7 years ago

litoxy commented 7 years ago

My plugin is configured as follows


[

    'clientOptions'=>[

        'justifyClasses'=>[ 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify' ],

        'height'=>200,

        'filebrowserUploadUrl' =>  Url::toRoute('/upload/uploadfiles'),

        'toolbarGroups' => [

            ['name' => 'document', 'groups' => ['mode', 'document', 'doctools']],

            ['name' => 'clipboard', 'groups' => ['clipboard', 'undo']],

            ['name' => 'forms'],

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

            ['name' => 'paragraph', 'groups' => [ 'list', 'indent', 'blocks', 'align', 'bidi' ]],

            ['name' => 'links'],

            ['name' => 'insert'],

            '/',

            ['name' => 'styles'],

            ['name' => 'blocks'],

            ['name' => 'colors'],

            ['name' => 'tools'],

            ['name' => 'others'],

        ],

      ],

        'preset' => 'custom',

    ]

The plugin displays the results

wx20170707-103626 2x

I want the following results

aaa

what should I do Thx

DenisAlliswell commented 7 years ago

+1 Align buttons don't appear in any configuration

tonydspaniard commented 7 years ago

@DenisAlliswell @lllito thanks for pointing that out... I'll try to fix it when i have a bit of time. PR welcome if you find the solution your self.

Thank you for understanding and for using the extension

tonydspaniard commented 7 years ago

@lllito @DenisAlliswell updated composer and versioning... mind testing with latest version 2.1.1? Thanks

DenisAlliswell commented 7 years ago

@tonydspaniard,

Problem 1
    - Installation request for 2amigos/yii2-ckeditor-widget 2.1.1 -> satisfiable by 2amigos/yii2-ckeditor-widget[2.1.1].
    - 2amigos/yii2-ckeditor-widget 2.1.1 requires ckeditor/ckeditor dev-full/4.7.x -> satisfiable by ckeditor/ckeditor[dev-full/4.7.x] but these conflict with your requirements or minimum-stabil
ity.
tonydspaniard commented 7 years ago

@DenisAlliswell mind adding this to your composer?

"minimum-stability": "dev",
"prefer-stable": "true"
DenisAlliswell commented 7 years ago

@tonydspaniard Everything works! Thank you, sir.

tonydspaniard commented 7 years ago

Great!