zf2-assetic-module icon indicating copy to clipboard operation
zf2-assetic-module copied to clipboard

How to make CKEDITOR work as asset

Open jonathangreco opened this issue 7 years ago • 0 comments

I tried to make CKEDITOR work with assetic but it has so much dependancies that it makes impossible to get it as a collection in assetic term. I tried to move row everything like this :

                'ckeditor_library' => [
                    'assets' => [
                        'ckeditor/*.js',
                        'ckeditor/*.css',
                        'ckeditor/adapters/*',
                        'ckeditor/lang/*',

                        'ckeditor/plugins/*/cursors/*',
                        'ckeditor/plugins/*/styles/*',
                        'ckeditor/plugins/*/images/*',
                        'ckeditor/plugins/*/filter/*',
                        'ckeditor/plugins/*/preview/*',
                        'ckeditor/plugins/*/skins/*',
                        'ckeditor/plugins/*/skins/*/*',
                        'ckeditor/plugins/*/dialogs/*.js',
                        'ckeditor/plugins/*/dialogs/*.png',
                        'ckeditor/plugins/*/dialogs/*.css',
                        'ckeditor/plugins/*/dialogs/langs/*.js',
                        'ckeditor/plugins/*/*',
                        'ckeditor/plugins/*.png',

                        'ckeditor/skins/*/*.css',
                        'ckeditor/skins/*/*.png',
                        'ckeditor/skins/*/*/images/*',
                        'ckeditor/skins/*/*/images/hidpi/*',
                    ],
                    'options' => [
                        'move_raw' => true,
                    ]
                ],

But i can't call this with the view helper, i got this error :

Collection 'ckeditor_library' does not exist

Called by the view Helper exception.

Is someone have a workaround ?

jonathangreco avatar Feb 20 '18 16:02 jonathangreco