I'm trying to debug #3065546: CKEditor's "merge cells" feature for tables does not work in when using Firefox, but I'm running into road block after road block when trying to set up a CKEditor locally unminified. There is a build-config.js file in the core/assets/vendor/ckeditor/ folder which file comments:
/**
* This is a Drupal-optimized build of CKEditor.
*
* You may re-use it at any time at http://ckeditor.com/builder to build
* CKEditor again. Alternatively, use the "build.sh" script to build it locally.
* If you do so, be sure to pass it the "-s" flag. So: "sh build.sh -s".
*
* If you are developing or debugging CKEditor plugins, you may want to work
* against an unoptimized (unminified) CKEditor build. To do so, you have two
* options:
* 1. Upload build-config.js to http://ckeditor.com/builder and choose the
* "Source (Big N'Slow)" option when downloading.
* 2. Use the "build.sh" script to build it locally, with one additional flag:
* "sh build.sh -s --leave-js-unminified".
* Then, replace this directory (core/assets/vendor/ckeditor) with your build.
*
* NOTE:
* This file is not used by CKEditor, you may remove it.
* Changing this file will not change your CKEditor configuration.
*/
I'm following step 1 and it does not work. When I download the replacement and replace the directory, I get error TypeError: CKEDITOR.skinName is undefined
in skin.js.
I hacked something in so that that var gets defined, but then I get an error about missing the Image2 plugin, despite it being there.
Anyone know of better steps to follow here?
Comment | File | Size | Author |
---|---|---|---|
#7 | 3070880-ckeditor-build-docs-7.patch | 1.58 KB | bkosborne |
Comments
Comment #2
bkosborneComment #3
bkosborneOkay, so the second set of instructions seems to work (doesn't produce a broken build). So I think we need to remove the first option since it doesn't work, and then improve the instructions for the 2nd option since they are vague. It's not clear if the "build.sh" file is part of core or CKEditor for example, or that you need to pass in the build-config.js file from core that that script.
Comment #4
Wim LeersYeah it seems that the CKEditor team broke the online builder along the way. But … that used the second option under the hood anyway. That second option is exactly how the CKEditor team themselves do releases.
Could you create a patch that removes that first option from the docs? :)
Comment #5
bkosborneHow's this?
Comment #6
Wim LeersLooking good!
Just a few thoughts:
Nit: s/Checkout/Check out/
Does this actually work? It used to be the case that you first needed to
cd dev/builder
and only then wouldbuild.sh
work as expected.Comment #7
bkosborneYes, it works. I tested both methods and compared the output and it's identical.
Fixed the grammar issue. No interdiff due to small patch size. Thank you for review.
Comment #8
Wim LeersExcellent! Thank you very much, @bkosborne! 👍
Comment #10
webchickGreat catch! Thanks for the updated docs!
Committed and pushed to 8.8.x, and backported to 8.7.x. Thanks!
Comment #12
webchickComment #14
Wim LeersTurns out that #6.2 was a problem, unlike what #7 says. See #3088525: Follow-up for #3070880: fix instructions for how to direct CKEditor's build system to use Drupal's build-config.js.