asset_compress icon indicating copy to clipboard operation
asset_compress copied to clipboard

AssetCompress does not work with CKEditor

Open lupuswwww opened this issue 8 years ago • 5 comments

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.

lupuswwww avatar Mar 14 '16 12:03 lupuswwww

What's not working?

markstory avatar Mar 14 '16 16:03 markstory

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

lupuswwww avatar Mar 14 '16 16:03 lupuswwww

@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.

markstory avatar Mar 15 '16 01:03 markstory

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)

lupuswwww avatar Mar 15 '16 07:03 lupuswwww

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]/';

jaykay-design avatar Mar 04 '17 17:03 jaykay-design