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

AssetCompress does not work with CKEditor #283

Open
lupuswwww opened this issue Mar 14, 2016 · 5 comments
Open

AssetCompress does not work with CKEditor #283

lupuswwww opened this issue Mar 14, 2016 · 5 comments
Labels
Milestone

Comments

@lupuswwww
Copy link

A segment of asset_compress.ini:
....
[cms-java-scripts.js]
files[] = jquery.js
files[] = ckeditor/ckeditor.js
files[] = all.js
......
It does not work for ckeditor.

@markstory
Copy link
Owner

What's not working?

@markstory markstory added this to the 3.0.2 milestone Mar 14, 2016
@lupuswwww
Copy link
Author

files[] = ckeditor/ckeditor.js
ckeditor is not showing
look last post (same problem) http://mark-story.com/posts/view/asset-compress-plugin-released

@markstory
Copy link
Owner

@lupuswwww Ok, but what is the error? Are you getting an error in javascript or from the process that is building assets? That comment gives me no new information beyond what is in this issue.

@lupuswwww
Copy link
Author

When I throw a script from ini file like this:

<script src="/js/admin/ckeditor/ckeditor.js"></script>

everything is working properly.
It is a js error: TypeError: [c]a is undefined (from firefox error console)

@markstory markstory modified the milestones: 3.0.2, 3.0.3 Jul 15, 2016
@jaykay-design
Copy link

Had the same issue and found this page when Googling.
The problem is that CKEditor is loaded from a different location when loaded with AssetCompress and can't find its configuration.
I solved it by including a JS setup file (before the ckeditor.js) in the same build with the following content:
window.CKEDITOR_BASEPATH = '/[path to the original CKEditor files]/';

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

No branches or pull requests

3 participants