Problem/Motivation

As a developer I would like to be able to dig into CKEditor JavaScript source code to debug issues and submit patches upstream. Currently it is a minified ckeditor.js file.

If I use the builder at http://ckeditor.com/builder and upload the core/assets/vendor/ckeditor/build-config.js file and download the "Source (Big N’Slow)" 4.4.7 version and replace core/assets/vendor/ckeditor with that and reload the page I get a faulty body field with no CKEditor loaded and the console has 2 errors.

GET http://sandbox/d8/core/assets/vendor/ckeditor/plugins/image2/plugin.js 
Uncaught [CKEDITOR.resourceManager.load] Resource name "image2" was not found at "http://sandbox/d8/core/assets/vendor/ckeditor/plugins/image2/plugin.js resourcemanager.js:212 ".

I feel like some developers may have been debugging this for a while now and may have some documentation to do this? I have looked so far but cannot find any.

I can totally figure this out but figured I would save sometime if someone else has already been down this path.

Proposed resolution

Remaining tasks

User interface changes

API changes

Comments

elijah lynn’s picture

Issue summary: View changes
elijah lynn’s picture

nod_’s picture

Component: javascript » ckeditor.module
Issue tags: +JavaScript
Related issues: +#2480333: Document how to use an unminified CKEditor build (for developing/debugging)

Haven't tried it, added a related issue though.

cilefen’s picture

elijah lynn’s picture

Thanks for the related issues.

I will note that the CTO of CKSource (owner of CKEditor) says that using source maps seems difficult because it is compiled first.

When it comes to source maps, I'm affraid I have some bad news. I already shared my concerns about producing source maps using online builder. Today I have to add that also adding source maps support inside command line builder is not that easy due to the way that we create minified files...

source: https://github.com/ckeditor/ckeditor-releases/issues/11#issuecomment-468...

elijah lynn’s picture

Status: Active » Closed (duplicate)

After further review of #2480333: Document how to use an unminified CKEditor build (for developing/debugging) I am closing this as a duplicate.