Feature #78917

Epic #78916: ext:rte_ckeditor

Integrate Element Browser for creating links

Added by Frans Saris almost 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
Start date:
2016-12-08
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Replace the default CKEditor Link button with our own element browser


Related issues

Related to TYPO3 Core - Bug #79919: Fix PageTS config example of CKEditor RTE Closed 2017-02-20

Associated revisions

Revision 5cc0e52c (diff)
Added by Frans Saris almost 3 years ago

[TASK] Add linkbrowser to CKEditor

Releases: master
Resolves: #78917
Change-Id: I864b7798cd30f0eec63f4ec719f8dfebca1086ba
Reviewed-on: https://review.typo3.org/50901
Tested-by: TYPO3com <>
Reviewed-by: Daniel Gorges <>
Tested-by: Daniel Gorges <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

Revision 29ac8fbc (diff)
Added by Frans Saris almost 3 years ago

[FOLLOWUP][TASK] Add linkbrowser to CKEditor

Streamlined added config and moved plugin out of the Contrib folder
and pass correct contents language to editor.

Releases: master
Resolves: #78917
Change-Id: Iccd66e2bea7f1503e2c4b3ae68096da70e9822ef
Reviewed-on: https://review.typo3.org/50912
Tested-by: TYPO3com <>
Reviewed-by: Daniel Gorges <>
Tested-by: Daniel Gorges <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

Revision bb177195 (diff)
Added by Benni Mack over 2 years ago

[FEATURE] Implement configuration for CKEditor

The main problem with the current RTE configuration relies in the fact
that it is only configurable via pageTS.

CKEditor can now be configured via YAML, but the configuration preset
can be overriden via pageTS.

Additionally, the CKEditor Form Element is cleaned up.

A different preset can be used via PageTS config:
- RTE.default.preset = minimal
- RTE.config.tt_content.bodytext.preset = full

Once included, the next features will be
- a configuration backend module for ckeditor
- Make sure to re-add the feature for RTE.anchorClasses
- Check the languages of CKeditor that they are in line with the TYPO3
languages (possibility to add others)
- image handling
- table handling

Resolves: #78917
Releases: master
Change-Id: Ia222b73072b9e3fdb3a120d0be0a24a913552126
Reviewed-on: https://review.typo3.org/50919
Tested-by: TYPO3com <>
Reviewed-by: Wouter Wolters <>
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>
Reviewed-by: Daniel Gorges <>
Tested-by: Daniel Gorges <>
Reviewed-by: Frans Saris <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

Revision 3ba114ff (diff)
Added by Frans Saris over 2 years ago

[FOLLOWUP][FEATURE] Implement configuration for CKEditor

Use correct field to determine page uid

Resolves: #78917
Releases: master
Change-Id: I01101640ff8ac1d801ef1619f8bc3c885aee2713
Reviewed-on: https://review.typo3.org/51555
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>

History

#1 Updated by Gerrit Code Review almost 3 years ago

  • Status changed from In Progress to Under Review

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50901

#2 Updated by Frans Saris almost 3 years ago

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

#3 Updated by Gerrit Code Review almost 3 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50912

#4 Updated by Gerrit Code Review almost 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50912

#5 Updated by Gerrit Code Review almost 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50912

#6 Updated by Gerrit Code Review almost 3 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50912

#7 Updated by Gerrit Code Review almost 3 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50912

#8 Updated by Frans Saris almost 3 years ago

  • Status changed from Under Review to Resolved

#9 Updated by Gerrit Code Review almost 3 years ago

  • Status changed from Resolved to Under Review

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#10 Updated by Gerrit Code Review almost 3 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#11 Updated by Benni Mack over 2 years ago

  • Target version changed from 8.5 to 8.6

#12 Updated by Gerrit Code Review over 2 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#13 Updated by Gerrit Code Review over 2 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#14 Updated by Gerrit Code Review over 2 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#15 Updated by Gerrit Code Review over 2 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#16 Updated by Gerrit Code Review over 2 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#17 Updated by Gerrit Code Review over 2 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#18 Updated by Gerrit Code Review over 2 years ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#19 Updated by Gerrit Code Review over 2 years ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#20 Updated by Gerrit Code Review over 2 years ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#21 Updated by Gerrit Code Review over 2 years ago

Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#22 Updated by Gerrit Code Review over 2 years ago

Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#23 Updated by Gerrit Code Review over 2 years ago

Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#24 Updated by Gerrit Code Review over 2 years ago

Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#25 Updated by Gerrit Code Review over 2 years ago

Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#26 Updated by Gerrit Code Review over 2 years ago

Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50919

#27 Updated by Benni Mack over 2 years ago

  • Status changed from Under Review to Resolved

#28 Updated by Gerrit Code Review over 2 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51555

#29 Updated by Frans Saris over 2 years ago

  • Status changed from Under Review to Resolved

#30 Updated by Riccardo De Contardi almost 2 years ago

  • Status changed from Resolved to Closed

#31 Updated by Ernesto Baschny over 1 year ago

If you stumbled over here when in search on how to configure the link wizard, I found this blog article https://www.thomaskieslich.de/blog/135-links-im-ckeditor-mit-eigenen-css-klassen/ and made some experiments, and having this in your ckeditor YAML settings will currently work - since the examples in the blog doesn't work as I expected:

imports:
   ...

editor:
  config:
    stylesSet:
    ...

buttons:
  link:
    properties:
      class:
        allowedClasses: 'link-internal,link-internal-blank,link-download,link-folder,link-external,link-external-blank,link-mail,read-more'
      title:
        readOnly: false
    page:
      properties:
        class:
          default: 'link-internal'
    file:
      properties:
        class:
          default: 'link-download'
    folder:
      properties:
        class:
          default: 'link-folder'
    url:
      properties:
        class:
          default: 'link-external-blank'
    mail:
      properties:
        class:
          default: 'link-mail'

classesAnchor:
  linkInternal:
    class: 'link-internal'
    type: 'page'
    titleText: 'Intern'
  linkDownload:
    class: 'link-download'
    type: 'file'
    titleText: 'Download'
  linkFolder:
    class: 'link-folder'
    type: 'folder'
    titleText: 'Verzeichnis'
  linkExternalBlank:
    class: 'link-external-blank'
    type: 'url'
    target: '_blank'
    titleText: 'Externer Link'
  linkMail:
    class: 'link-mail'
    type: 'mail'
    titleText: 'Mail schreiben'

classes:
  link-internal:
    name: 'Interner Link'
  link-download:
    name: 'Download Link'
  link-folder:
    name: 'Verzeichnis Link'
  link-external-blank:
    name: 'Externer Link'
  link-mail:
    name: 'Mail Link'

This is just as a note / cheat-sheet for myself, in general I find that configuration (which is mean to be compatible with old RTE configuration) is counter-intuitive. Maybe this will be further improved before it is officially documented. :)

Also available in: Atom PDF