Task #101874
closedEpic #99669: CKEditor5 Collection
Story #101906: CKEditor5 missing plugins
No table captions in Ckeditor 5.
Added by Martin Farkas about 1 year ago. Updated 5 months ago.
100%
Description
The Ckeditor 5 lacks out of the box the possibility for table captions. This must be installed via a plugin. Since table captions are a standard part of the content creation, the TYPO3 core should deliver the ckeditor plugin directly. Thanks for help.
Updated by David Bruchmann about 1 year ago
Actually the fix is easy, as admin you can follow this hint to add the functionality, note my comment below too before doing anything:
https://stackoverflow.com/questions/76168846/how-do-i-activate-the-font-functions-in-ckeditor-5-in-typo3-12
The plugin has to be added in 2 places in `typo3/Build/Sources/JavaScript/rte_ckeditor/contrib/ckeditor5-bundle.js`, below the previous and next lines are shown to know where:
import Table from '@ckeditor/ckeditor5-table/src/table.js'; import TableCaption from '@ckeditor/ckeditor5-table/src/tablecaption.js'; import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar.js';
export const CKEditor5Plugins = { ... Table, TableCaption, TableToolbar,
For compiling with npx and grunt I did the whole process in DDEV, so I never had to care about any version, it's usually just working.
Updated by David Bruchmann about 1 year ago
The plugin tablecaption still has to be included in the yaml configuration for the editor:
editor: config: toolbar: items: ... - insertTable ... table: defaultHeadings: { rows: 1 } contentToolbar: - tableColumn - tableRow - mergeTableCells - tableProperties - tableCellProperties - toggleTableCaption
The plugin tablecaption is removing the tag caption but wrapping a table in the the code:
<figure class="table"> <table> ... <table> <figcaption>HERE IS THE CAPTION</figcaption> </figure>
The new used tag `figcaption` still has to be allowed in the frontend.
This can be achieved with the following snippet in the file Configuration/TypoScript/constants.typoscript of the sitepackage:
styles { content { allowTags := addToList(figcaption) } }
Updated by Benjamin Franzke about 1 year ago
- Parent task changed from #99669 to #101906
Updated by Benjamin Franzke about 1 year ago
- Related to Bug #99681: CKEditor5 Table Plugin added
Updated by Gerrit Code Review about 1 year ago
- Status changed from New to Under Review
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 11 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 12 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 13 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 14 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 15 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 16 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 17 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 18 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 19 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 20 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 21 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 22 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 23 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79006
Updated by Gerrit Code Review about 1 year ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81397
Updated by Gerrit Code Review 12 months ago
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82185
Updated by Gerrit Code Review 12 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82185
Updated by Gerrit Code Review 11 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82187
Updated by Gerrit Code Review 9 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82185
Updated by Gerrit Code Review 9 months ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82185
Updated by Gerrit Code Review 9 months ago
Patch set 2 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82187
Updated by Anonymous 9 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 49b5e95bfdcb37fbf4bdea51bce50a38eb081a0c.