Closed (fixed)
Project:
CKEditor 5
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2021 at 08:54 UTC
Updated:
26 Nov 2021 at 08:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lauriiiThis allows running eslint against this module when the module is cloned under
core/modules/ckeditor5.Comment #3
wim leersComment #4
lauriiiComment #5
lauriiiComment #6
lauriiiComment #7
lauriiiComment #8
lauriiiComment #9
wim leersWe don't want Drush-related things in Drupal core.
Comment #10
wim leersRebased the patch, no longer applied after #3227853: Remove dependency on Vue.js.
(Not yet updating the shell script because more changes inbound.)
Comment #11
wim leersThis removes the work-around test coverage that #3228355: PHP warning when saving text format with CKE5: $form_state->getTriggeringElement() unexpectedly returning NULL introduced, and which will be fixed in Drupal core in #3228956: PHP notices are not detected for headless browser-triggered requests in FunctionalJavascript tests.
Comment #12
wim leersChange package from
CKEditor 5toCore (Experimental)and useversion: VERSION.Comment #13
lauriiiComment #14
lauriiiComment #15
wim leersAlso removing the Drush command.
EDIT: Never mind, I had already added that to the script…
Comment #16
wim leers#3231364-2: Add CKEditor 5 module to Drupal core failed gloriously on
cspell:DAdding"modules/ckeditor5/js/build/**"tocore/.cspell.json.Addingmodules/ckeditor5/js/buildto the list of directories that should not be checked for ES6ification.Just moving it to
core/assets/vendorinstead. First step: patchingckeditor5.libraries.ymlandcore.libraries.yml. Note that this is not just cut and paste: significant change is necessary for things to still work.Comment #17
wim leersComment #18
wim leersUpdate
core/package.jsonto find the build script incore/assets/vendor/ckeditor5now.Comment #19
wim leersI can't get
figured out.
I cannot reproduce this locally. It seems that the auto-ES6-ification failed to do the correct thing here. I see similar cases elsewhere in Drupal core, and there it did get generated correctly.
So temporarily ignoring this file instead :D
Comment #20
wim leersWe still need to update the CKE5 patch to update
webpack.config.jsto point tocore/assets/vendor/ckeditor5/….Comment #21
wim leersFinally, I do not know enough about webpack to know if it's safe for me to move its configuration to a different location:
But the commit script already has a similar exemption for
core/postcss.config.js, so I'll just follow suit.ALSO: found one spot I missed in #16…
Comment #22
wim leersMissed some things in the move to
core/assets…Comment #23
wim leers… and also for the core patch.
Comment #24
wim leersComment #25
wim leersAdd
core/modules/ckeditor5/modules/ckeditor5_dev/js/ckeditor5_dev.es6.jsto theeslintignore list.Comment #26
wim leersComment #27
wim leersThe last straggler:
layercake.jsnot needing to be ES6ified because it's external code.Comment #28
wim leersUsing #27.
Comment #29
wim leersFix the failing
ComposerIntegrationTest: we were not yet updatingcomposer.lockper https://www.drupal.org/about/core/policies/core-dependencies-policies/ma....Comment #30
wim leersUpdate expectations in
CKEditor5PluginManagerTestfor the move of assets out of the CKE5 module and intocore/assets/vendor/ckeditor5/.Comment #31
wim leersIn splitting up asset libraries between CKE5 module and
core/assets/vendor, the CSS file for the language plugin ended up in both sides. Which caused a test fail at #3231364-25: Add CKEditor 5 module to Drupal core. This fixes that.Comment #32
wim leersUpdate core patch for #3231427: Changing basic HTML format to CKEditor 5 results in CKEditorError: plugincollection-plugin-not-found {"plugin":null} on fresh install.
Comment #33
wim leersUpdate CKE5 patch for [#32321427]; it no longer applied.
Comment #34
wim leersThis makes
ResolvedLibraryDefinitionsFilesMatchTestpass tests.Comment #35
wim leersApply the latest patches.
Comment #36
wim leers… and add the
composer.lockchanges to the patch, which #29 should already have done.EDIT: oh, nope, looks like we should've always been adding this one!
Comment #37
lauriiiThis should fix Stable and Stable 9 related tests, as well as
Drupal\Tests\ckeditor5\FunctionalJavascript\LanguageTestComment #38
wim leersD'oh — of course :D
Comment #39
wim leersComment #40
wim leersQuoting #3231364-32: Add CKEditor 5 module to Drupal core:
Comment #41
wim leersUpdated patches for #3227875: Add ckeditor5-remove-format to allow removing formatting from pasted content + #3227890: Add ckeditor5-special-characters to allow inserting special characters for users that do not know the native picker.
Comment #42
wim leersComment #43
wim leersIn the next round, we should also apply #3231324-4: Use core icons where possible after moving to core.
Comment #44
wim leers9da1866da41f0bfcdb90e1f8901ce8919549f189in9.3.x.and updated to account for #3227871: Add ckeditor5-paste-from-office to allow pasting from Microsoft Office & Google Docs.Comment #45
wim leersD'oh, I forgot to include #3231324: Use core icons where possible after moving to core 😬 Will do so in the next reroll!
Comment #46
effulgentsia commentedckeditor5.ckeditor5.yml has this at the top:
# @see this module's README.md for details on defining CKEditor 5 plugins inSo it's a WTF that in the core patch this README doesn't exist. Maybe we should retain the README in the core patch? Or else change the above to reference something else?
Comment #47
wim leersImplemented #3243869: Should ckeditor5_dev module be excluded from the core patch and be a contrib project only?.
Comment #48
wim leers@lauriii I just realized you created the
core/yarn.locksection of the-core.patchpatches here? I've been updating that patch but have not been touching that area! 😅Comment #49
wim leersUpdating the core patch to now target
2073a9468d7220f5d2d0b7b4368cc3fcdb9f43c9of the module, i.e. #3245942: Update CKEditor 5 to 31.0.0 — thecore/yarn.lockneeded to be updated.Thanks to @lauriii for the mentoring on how to do this! (Basically: copy relevant parts from this module's
package.jsonintocore/package.json, thencd core && yarn install.)Comment #50
wim leersComment #51
wim leersOkay, #3231364-67: Add CKEditor 5 module to Drupal core failed to apply … and in fixing that I realized that we can keep the "core" patch here smaller, the script is taking care of regenerating the
core/yarn.lockanyway 🥳Comment #52
wim leersI wrote in #43 we should incorporate #3231324: Use core icons where possible after moving to core's patch, but that still hasn't happened. Writing it again to avoid forgetting again. Once it's in here, we can mark that issue fixed.
Comment #53
wim leersMassive changes to the core patch due to #3247246: Attribute value encoding not compatible with Xss::filter() and #3247711: Simplify and accelerate builds: update our use of the CKEditor 5 DLL manifest!
The former also brought a new dev dependency:
jsdom.Comment #54
wim leersMissed in #53: #3247246: Attribute value encoding not compatible with Xss::filter() introduced an asset library definitions change. Updating the core patch once more…
Comment #55
wim leersRebased the CKE5 patch. Also for #3247246: Attribute value encoding not compatible with Xss::filter() in particular.
Comment #56
wim leersAnd now incorporating #52: #3231324: Use core icons where possible after moving to core.
Comment #57
wim leersUgh, the patch generated by #56 failed because of the new Nightwatch test…
Let's see how this fares: #3044496-342: [ignore] bnjmnm patch testing.
Comment #58
wim leersBetter, but not there yet:
For the first one, I think we should do https://stackoverflow.com/a/55863857, but let's go with the simplest possible fix for now…
Fingers crossed for #3044496-343: [ignore] bnjmnm patch testing…
Comment #59
tim.plunkettTwo failures on the latest patch:
The patch is adding it at
core/assets/vendor/ckeditor5/ckeditor5_plugins/drupalHtmlEngine/src/drupalhtmlbuilder.jsLooks like
drupalHtmlBuilderTest.es6.jsis using a relative path that works for contrib but not post-move.Same ones, just different order.
Comment #60
wim leersI misread the green branch test result as a passing test 🙈🙈🙈
Comment #61
wim leersTried to address both things in #59.
Fingers crossed for #3044496-344: [ignore] bnjmnm patch testing…
Comment #62
wim leersCloser, but not there yet.
Eyes on #3044496-345: [ignore] bnjmnm patch testing.
Comment #63
wim leersSo close! The plugin manager test is now passing. Still something slightly wrong with file paths in the Nightwatch test, fixing that…
Eyes on #3044496-346: [ignore] bnjmnm patch testing.
Comment #64
tim.plunkettThe no-eval is now failing because of the blank line
Comment #65
wim leersA most unwelcome and unfortunate accidental change 😬
→ #3044496-347: [ignore] bnjmnm patch testing (that issue is now timing out 😅 → see live progress at https://dispatcher.drupalci.org/view/D8%20Core%20Patches/job/drupal_patc...)
Comment #66
wim leers🥳
Comment #67
wim leersAddress #3231364-75: Add CKEditor 5 module to Drupal core, points 2 and 3.
Relative to
7e3cf3bacce08f39c3c69b1081cefc2a9a15cf8bin CKE5,d63941bc1af2e1a31debad1f202e46351eaa149din core.Comment #68
lauriiiThis should address #3231364-75: Add CKEditor 5 module to Drupal core point 1.
Being tested at #2488258-162: [ignore] Patch testing issue.
Comment #69
wim leersThis should address the failures for #68.
It also required https://git.drupalcode.org/project/ckeditor5/-/commit/b2dfb1c35102cddebe...
Being tested at #2488258-163: [ignore] Patch testing issue.
Comment #70
wim leersSwapped the CKE5 and core patch URLs 😇
#2488258-164: [ignore] Patch testing issue
Comment #71
wim leersComment #72
lauriiiComment #73
wim leersUpdated script to use #72.
#2488258-166: [ignore] Patch testing issue
Comment #74
lauriiiComment #75
wim leers