Project

General

Profile

Actions

Task #101874

closed

Epic #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.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2023-09-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #99681: CKEditor5 Table PluginNew2023-01-23

Actions
Actions #1

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.

Actions #2

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)
    }
}

Actions #3

Updated by Benjamin Franzke about 1 year ago

  • Parent task set to #99669
Actions #4

Updated by Benjamin Franzke about 1 year ago

  • Parent task changed from #99669 to #101906
Actions #5

Updated by Benjamin Franzke about 1 year ago

  • Related to Bug #99681: CKEditor5 Table Plugin added
Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

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

Actions #12

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

Actions #13

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

Actions #14

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

Actions #15

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

Actions #16

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

Actions #17

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

Actions #18

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

Actions #19

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

Actions #20

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

Actions #21

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

Actions #22

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

Actions #23

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

Actions #24

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

Actions #25

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

Actions #26

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

Actions #27

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

Actions #28

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

Actions #29

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

Actions #30

Updated by Anonymous 9 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #31

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF