79006[BUGFIX] Add font plugin to CKEditor5
Commit message
Review
-
Code review CR +2 Done
- Benjamin Franzke +2
- Guido Schmechel +1
- Torben Hansen +1
- David Bruchmann +1
- Benni Mack +1
-
Verified V +2 Done
- Benjamin Franzke +2
- Guido Schmechel +1
- Torben Hansen +1
- David Bruchmann +1
- Benni Mack +1
- core-ci +1 CI
Issues 1
Files 67
- Build/package-lock.json+9 −0
- Build/package.json+1 −0
- Build/web-test-runner.config.mjs+1 −0
- typo3/sysext/core/Classes/Configuration/CKEditor5Migrator.php+12 −4
- typo3/sysext/core/Documentation/Changelog/12.4.x/Important-100847-AddedFontPluginToCKEditor5.rst6new+62 −0
- typo3/sysext/core/Tests/Unit/Configuration/CKEditor5MigratorTest.php+4 −0
- typo3/sysext/rte_ckeditor/Configuration/RTE/Full.yaml3+30 −0
- typo3/sysext/rte_ckeditor/Configuration/JavaScriptModules.php+1 −0
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/@ckeditor/ckeditor5-font.jsnew+94 −0
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ar.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/az.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/bg.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/bn.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/bs.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ca.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/cs.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/da.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/de-ch.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/de.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/el.js+1 −1
Show 47 more files
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/en-au.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/en-gb.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/en.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/es.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/et.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/fa.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/fi.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/fr.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/gl.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/he.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/hi.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/hr.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/hu.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/id.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/it.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ja.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/jv.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ko.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ku.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/lt.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/lv.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ms.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/nb.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ne.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/nl.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/no.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/pl.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/pt-br.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/pt.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ro.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ru.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/sk.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/sl.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/sq.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/sr-latn.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/sr.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/sv.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/th.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/tk.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/tr.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ug.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/uk.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/ur.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/uz.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/vi.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/zh-cn.js+1 −1
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/translations/zh.js+1 −1
Review log 76103
Show 5678 earlier messages
-
Johannes Nielsen uploaded patch set 1 05/10/23, 07:04
-
core-ci voted on patch set 1 V +1 05/10/23, 07:12 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/41718
-
Georg Ringer commented on patch set 1 05/10/23, 07:29
should we also add the TableCaption plugin as requested in the issue? -
Johannes Nielsen uploaded patch set 2
V +105/10/23, 08:13 -
Johannes Nielsen commented on patch set 2 05/10/23, 08:20
Reply
Makes sense. Done -
core-ci voted on patch set 2 V +1 05/10/23, 08:20 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/41722
-
Stefan Froemken commented on patch set 2 CR -1 05/10/23, 19:03
I'm not a ckeditor PRO, but attaching un-minified JavaScript to a minified js file looks odd. I will remove my vote, if that's really the way to go. -
Johannes Nielsen commented on patch set 2 05/11/23, 06:57
Reply
Indeed, that doesn't seem right. Honestly I didn't really look at the bundled file because it is generated using `npm run build`. I'll try and fix this. -
Johannes Nielsen commented on patch set 2 05/11/23, 07:34
Reply
On second thought: The entire file is unminified, not just the lines this patch adds. This seems to be a more general issue with the rollup configuration. It is probably possible to minify this file (I am absolutely no expert on rollup), however I am unsure whether that is within the scope of the issue. -
Andreas Kienast commented on patch set 2 05/11/23, 17:38
Reply
I didn‘t do any investigations, but solving the „unminified code in the build“ case is IMO not the scope of this patch. You didn‘t fiddle with the build chain and everything behaves fine, otherwise the CI would‘ve gone red. I remember I spotted the same „issue“ when upgrading ckeditor earlier. @Stefan: can you please lift your -1? -
Stefan Froemken voted on patch set 2 CR 0 05/11/23, 19:51
-
Johannes Nielsen commented on patch set 2 CR -1 05/12/23, 06:23
The patch does not contain the font size plugin which is also mentioned in the issue -
Johannes Nielsen uploaded patch set 3
CR -1V +105/12/23, 07:00 -
Johannes Nielsen commented on patch set 3 05/12/23, 07:00
Reply
Done -
core-ci voted on patch set 3 V +1 05/12/23, 07:07 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/41771
-
Chris topher voted on patch set 3 V +1 CR +1 05/12/23, 16:04
-
Johannes Nielsen commented on patch set 3 06/01/23, 07:09
Reply
Done -
Andreas Kienast uploaded patch set 4
CR +1V +106/02/23, 08:51 -
core-ci voted on patch set 4 V +1 06/02/23, 08:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/42160
-
Sybille Peters commented on patch set 4 06/03/23, 09:37
Must the configuration be changed in any way? In that case, it would be nice if you could add a Changelog (e.g. use type "Important" for a bugfix) and also make the changes in the docs. (Personally, I would rather have it documented in the documentation than in a commit message, but if we previously did not document it and it didn't change, you should be in the clear.). -
Johannes Nielsen commented on patch set 4 06/05/23, 08:14
Reply
Well, you _can_ adapt the configuration, if you add those plugins to your RTE. Is that what you mean? Honestly, the documentation on RTE configuration seems to be partially outdated anyways. It still references the CKEditor4 documentation (https://docs.typo3.org/c/typo3/cms-rte-ckeditor/main/en-us/Configuration/Reference.html#editor-config) and talks about editor.externalPlugins which is no longer supported. Is there a separate patch addressing this? -
Sybille Peters commented on patch set 4 06/05/23, 08:32
Reply
My question is if there is any configuration change directly related to this patch which should be addressed in this patch (by changelog oder docs change). Everything else (including updating the docs) can be done in separate patches). -
Johannes Nielsen uploaded patch set 5
V +106/08/23, 11:39 -
Johannes Nielsen uploaded patch set 6 06/08/23, 11:46
-
core-ci voted on patch set 5 V -1 06/08/23, 11:46 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/42299
-
Johannes Nielsen commented on patch set 6 06/08/23, 11:48
Reply
Alright, I added a short changelog entry. Hopefully it is in the right place and contains all the information it should. I think adding this to the docs should be done in a separate patch specifically targeted at updating RTE docs. -
core-ci voted on patch set 6 V +1 06/08/23, 11:53 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/42300
-
Johannes Nielsen commented on patch set 6 06/13/23, 12:17
Reply
Done -
Chris topher commented on patch set 6 06/22/23, 07:17
Thanks for adding the documentation! Is there anything else that needs to be done to get this change in? -
David Bruchmann commented on patch set 6 09/08/23, 16:04
Reply
I think at least one yaml file should get this: table: defaultHeadings: { rows: 1 } contentToolbar: - tableColumn - tableRow - mergeTableCells - tableProperties - tableCellProperties - toggleTableCaption -
David Bruchmann commented on patch set 6 09/08/23, 16:14
Reply
the other settings should certainly be included in a yaml file too. Concerning TableCaption some further settings concerning the new tag figcaption in TypoScript are required too, here is a walkthrough with all things to get it running completetly: https://forge.typo3.org/issues/101874?next_issue_id=101869. -
David Bruchmann commented on patch set 6 09/08/23, 17:41
ckeditor5-bundle.js:27import { Font } from '@ckeditor/ckeditor5-font/src'; -
David Bruchmann commented on patch set 6 09/08/23, 17:49
In the rst-file all options should be added correctly. Concerning the font options it's like below. Don't mind about the comments, remove, alter or add as you like: editor: config: toolbar: items: - fontFamily - fontSize - fontColor # add button to select text color - fontBackgroundColor # add button to select text background color -
David Bruchmann commented on patch set 6 V -1 CR -1 09/08/23, 17:54
needs a bit more work like explained before ;-) -
David Bruchmann commented on patch set 6 09/08/23, 18:04
Important-100847-AddPluginsToCKEditor.rst:30These lines in the rst file, with empty options, but as comments, might be more confusing than helping, I think. Is there an example how further options are added in those update massages? Else I'd just leave it away. -
Benjamin Franzke commented on patch set 6 09/13/23, 06:43
You can also add `Resolves: #101874` with the next push, since you seem to resolve https://forge.typo3.org/issues/101874 with this as well.ckeditor5-bundle.js:27ReplyNo, the is the newer and recommended import-mechanisms. We'll refactor the others as well. See https://ckeditor.com/docs/ckeditor5/latest/updating/guides/update-to-37.html#:~:text=Replace%20the%20community%20types%20with%20native%20types%3A -
Benjamin Franzke uploaded patch set 7
CR -1V +110/04/23, 20:57 -
Benjamin Franzke commented on patch set 7 10/04/23, 20:57
Reply
DoneImportant-100847-AddPluginsToCKEditor.rst:30ReplyDone -
core-ci voted on patch set 7 V -1 10/04/23, 21:04 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47410
-
Benjamin Franzke uploaded patch set 8
V -110/05/23, 08:47 -
core-ci voted on patch set 8 V -1 10/05/23, 09:00 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47427
-
Benjamin Franzke uploaded patch set 9
V -110/06/23, 08:10 -
core-ci voted on patch set 9 V -1 10/06/23, 08:18 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47457
-
Benjamin Franzke uploaded patch set 10
V -110/06/23, 08:50 -
core-ci voted on patch set 10 V -1 10/06/23, 09:02 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47463
-
Benjamin Franzke uploaded patch set 11
V -110/06/23, 09:05 -
Benjamin Franzke uploaded patch set 12 10/06/23, 09:08
-
core-ci voted on patch set 12 V -1 10/06/23, 09:32 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47472
-
Benjamin Franzke rebased onto patch set 13
V -110/06/23, 11:51 -
core-ci voted on patch set 13 V -1 10/06/23, 12:07 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47483
-
Benjamin Franzke rebased onto patch set 14
V -110/06/23, 12:30 -
core-ci voted on patch set 14 V -1 10/06/23, 12:42 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47490
-
Benjamin Franzke uploaded patch set 15
V -110/06/23, 13:13 -
core-ci voted on patch set 15 V -1 10/06/23, 13:21 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47496
-
Benjamin Franzke uploaded patch set 16
V -110/06/23, 14:35 -
core-ci voted on patch set 16 V -1 10/06/23, 14:49 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47504
-
Benjamin Franzke rebased onto patch set 17
V -110/06/23, 14:52 -
core-ci voted on patch set 17 V +1 10/06/23, 15:03 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47507
-
Benjamin Franzke rebased onto patch set 18
V +110/06/23, 16:19 -
core-ci voted on patch set 18 V +1 10/06/23, 16:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47514
-
Benjamin Franzke uploaded patch set 19
V +110/08/23, 04:07 -
Benjamin Franzke voted on patch set 19 V +1 CR +1 10/08/23, 04:07
-
core-ci voted on patch set 19 V +1 10/08/23, 04:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47550
-
Benjamin Franzke uploaded patch set 20
CR +1V +110/08/23, 04:39 -
Benjamin Franzke commented on patch set 20 10/08/23, 04:40
Reply
Added to Full.ymml and fixed the default frontend config to allow figcaption to be rendered. -
David Bruchmann commented on patch set 20 10/08/23, 04:51
Reply
Great that you're so busy on it! What you think about adding the new font options to full.yaml too? -
core-ci voted on patch set 20 V +1 10/08/23, 04:52 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47552
-
Benjamin Franzke uploaded patch set 21
V +110/08/23, 05:35 -
Benjamin Franzke commented on patch set 21 V +1 CR +1 10/08/23, 05:36
Reply
ACK (since it was included in v11 Full as well). Also fixed some other cases I recently broke for "Full". -
core-ci voted on patch set 21 V +1 10/08/23, 05:42 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47553
-
Benjamin Franzke uploaded patch set 22
CR +1V +110/09/23, 05:17 -
core-ci voted on patch set 22 V +1 10/09/23, 05:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47587
-
Benjamin Franzke marked it work in progress 10/09/23, 15:51
-
Benjamin Franzke marked it ready for review 10/10/23, 05:39
-
Benjamin Franzke rebased onto patch set 23
V +110/10/23, 05:39 -
core-ci voted on patch set 23 V +1 10/10/23, 05:46 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47635
-
Benjamin Franzke voted on patch set 23 V +1 CR +1 10/10/23, 07:23
-
Oliver Hader voted on patch set 23 CR +1 10/10/23, 08:01
-
Oliver Hader voted on patch set 23 V +1 10/10/23, 08:26
-
Benjamin Franzke marked it work in progress 10/10/23, 18:49
-
Sybille Peters wrote 10/26/23, 18:20
Removed cc Sybille Peters. -
Benjamin Franzke uploaded patch set 24
CR +1V +112/14/23, 08:19 -
Benjamin Franzke marked it ready for review 12/14/23, 08:23
-
core-ci voted on patch set 24 V +1 12/14/23, 08:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/50639
-
Benjamin Franzke uploaded patch set 25
V +112/14/23, 08:45 -
core-ci voted on patch set 25 V +1 12/14/23, 08:51 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/50643
-
David Bruchmann commented on patch set 25 12/14/23, 09:17
Full.yaml:97Like commented in https://review.typo3.org/c/Packages/TYPO3.CMS/+/81397 "toggleTableCaption" isn't found without adding ` - { 'module': '@ckeditor/ckeditor5-table', exports: ['Table', 'TableToolbar', 'TableProperties', 'TableCellProperties', 'TableCaption'] }` I tested with v12.4.9 -
David Bruchmann commented on patch set 25 12/14/23, 09:30
Full.yaml:97ReplyIt might be though that I'm mistaking as I didn't test it like included in the system extensions but copied the JS files to the sitepackage and adjusted the Configuration/JavaScriptModules,php. So sorry if this leads to confusion. -
Benjamin Franzke commented on patch set 25 12/14/23, 09:31
Full.yaml:97ReplyThat is included in Build/Sources/TypeScript/rte_ckeditor/ckeditor5.ts and I moved that piece to another patch: 82185: [TASK] Enable tablecaption in CKEditor5 | https://review.typo3.org/c/Packages/TYPO3.CMS/+/82185 -
Benjamin Franzke uploaded patch set 26
V +102/12/24, 20:45 -
core-ci voted on patch set 26 V +1 02/12/24, 20:52 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53103
-
Guido Schmechel commented on patch set 26 02/16/24, 13:13
I am aware that something will happen here. But here is some feedback on the documentation :-)Important-100847-AddedFontPluginToCKEditor5.rst:14Does it make sense to link the official documentation? Example: https://ckeditor.com/docs/ckeditor5/latest/features/font.htmlImportant-100847-AddedFontPluginToCKEditor5.rst:19I had tested a little. What I was missing here: importModules: - { 'module': '@ckeditor/ckeditor5-font', 'exports': ['Font'] } It seemed as if I only had to add these options (fontColor+fontBackgroundColor).Important-100847-AddedFontPluginToCKEditor5.rst:31label instead of name? The hex code was displayed here. Only after changing the config to "label" the value "orange" was shown when hovering. -
Benjamin Franzke uploaded patch set 27
V +102/17/24, 08:18 -
core-ci voted on patch set 27 V +1 02/17/24, 08:24 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53268
-
Benjamin Franzke uploaded patch set 28
V +102/17/24, 08:35 -
Benjamin Franzke commented on patch set 28 02/17/24, 08:35
Important-100847-AddedFontPluginToCKEditor5.rst:14ReplyDoneImportant-100847-AddedFontPluginToCKEditor5.rst:19ReplyAck, good catch. Added.Important-100847-AddedFontPluginToCKEditor5.rst:31ReplyThanks, done! -
core-ci voted on patch set 28 V +1 02/17/24, 08:44 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53269
-
Torben Hansen voted on patch set 28 CR +1 V +1 02/17/24, 08:46
-
Guido Schmechel voted on patch set 28 CR +1 V +1 02/17/24, 10:34
-
David Bruchmann voted on patch set 28 CR +1 V +1 02/18/24, 08:23
-
Benni Mack voted on patch set 28 CR +1 V +1 02/18/24, 21:57
-
Benjamin Franzke voted on patch set 28 CR +2 V +2 02/19/24, 04:40
-
Benjamin Franzke merged patch set 29 02/19/24, 04:47