Add Support to Automatic text transformation

Created on 6 January 2023, almost 2 years ago
Updated 11 March 2024, 9 months ago

Problem/Motivation

Drupal 9.5 as CKEditor 5, and in future releases we should allow using the new features of CKEditor 5

CKEditor 5 has a new feature for Automatic Text transformation, ( https://ckeditor.com/docs/ckeditor5/latest/features/text-transformation.... ) and is enabled by default on the editor.

Drupal 9.5 or later Drupal 10 should allow to use of this feature and configure the different options. https://ckeditor.com/blog/feature-of-the-month-automatic-text-transforma...

Steps to reproduce

Proposed resolution

Create a section where you will be able to enable the feature and configure the different items:

- include
- remove
- extra

Remaining tasks

User interface changes

API changes

โœจ Feature request
Status

Closed: works as designed

Version

11.0 ๐Ÿ”ฅ

Component
CKEditor 5ย  โ†’

Last updated about 20 hours ago

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom pjflopes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Let's first do โœจ Add support for ckeditor5-autoformat Fixed , which has far stronger community interest. ๐Ÿคž

    After that's in, let's evaluate this in more detail ๐Ÿ˜Š

  • ๐Ÿ‡ฎ๐Ÿ‡ฉIndonesia el7cosmos ๐Ÿ‡ฎ๐Ÿ‡ฉ GMT+7

    Since autoformat has already committed, is there any plan for this

  • Status changed to Active over 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    You're right, this is not blocked anymore!

    This is a powerful feature, the tricky thing is to decide where the boundaries lie, because for example configuration like this:

                        // You can also define patterns using regular expressions.
                        // Note: The pattern must end with `$` and all its fragments must be wrapped
                        // with capturing groups.
                        // The following rule replaces ` "foo"` with ` ยซfooยป`.
                        {
                            from: /(^|\s)(")([^"]*)(")$/,
                            to: [ null, 'ยซ', null, 'ยป' ]
                        },
    

    will never really be feasible via the UI ๐Ÿ˜…

  • ๐Ÿ‡ฎ๐Ÿ‡ฉIndonesia el7cosmos ๐Ÿ‡ฎ๐Ÿ‡ฉ GMT+7

    Yes, perhaps we leave out the pattern substitution for now

  • Status changed to Postponed: needs info about 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Per #3227354-111: Add support for ckeditor5-autoformat โ†’ , since there seems to be no complaints about autoformat in the first 3 months of that being enabled by default, I think we can consider adding this. That being said, the impact of this is far lower I think.

    Demoting to .

    We should only do this if a significant portion of Drupal sites would benefit from this IMHO. 6 followers in >9 months is almost a certain indication that this is not worth pursuing.

    If this does not reach at least 20 followers by the end of the year, I will close it. (For contrast: #3227354 has 45 followers.)

  • Status changed to Closed: works as designed 9 months ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Still only 11 followers. Acting on what I wrote in #8.

  • ๐Ÿ‡ง๐Ÿ‡ทBrazil gedvan Joรฃo Pessoa

    For those who may be interested, I just created a module that adds the TextTransformation plugin to CKEditor 5.

    https://www.drupal.org/project/ckeditor_text_transformation โ†’

Production build 0.71.5 2024