Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make CKEDITOR work as asset #179

Open
jonathangreco opened this issue Feb 20, 2018 · 0 comments
Open

How to make CKEDITOR work as asset #179

jonathangreco opened this issue Feb 20, 2018 · 0 comments

Comments

@jonathangreco
Copy link

jonathangreco commented Feb 20, 2018

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant