Opened 8 years ago
Last modified 8 years ago
#16981 pending Bug
When use BundleTable.EnableOptimizations = true in C#, the CKEditror can not work.
Reported by: | sapze | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Steps to reproduce
- bundles.Add(new ScriptBundle("~/bundles/ckeditor/ckeditor").Include("~/ckeditor/ckeditor.js"));
- BundleTable.EnableOptimizations = true;
Expected result
Actual result
SyntaxError: expected expression, got keyword 'else'. ckeditor:1:172788
Other details (browser, OS, CKEditor version, installed plugins)
CKEditor info: timestamp:"G87E",version:"4.5.11",revision:"3876e73" later than this version has the same issue
Change History (1)
comment:1 Changed 8 years ago by
Status: | new → pending |
---|---|
Version: | 4.7.0 (GitHub - major) |
According to documentation, the
BundleTable.EnableOptimizations
"gets or sets whether bundling and magnification of bundle references is enabled".It sounds like this option minifies scripts. Please note that ckeditor.js in release version is already minimized and there is no need to minify it again. Can you confirm that this is what is happening? Could you compare ckeditor.js (available in browser and not the one on file system) with and without this option enabled? Can you perhaps exclude CKEditor scripts from that optimization?