Unable to install on Drupal 10 due to ckeditor 5

Created on 26 July 2023, almost 2 years ago

Problem/Motivation

I downloaded the latest dev but still this module reports that Ckeditor 4 is required and it won't install.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇹🇭Thailand AlfTheCat

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

Comments & Activities

  • Issue created by @AlfTheCat
  • 🇧🇪Belgium JeroenT 🇧🇪

    See Add support for ckeditor5-autoformat Fixed for Drupal 10 and CKEditor5. This is included in core since Drupal 10.1.0.

  • 🇦🇺Australia thursday_bw

    "See #3227354: Add support for ckeditor5-autoformat for Drupal 10 and CKEditor5. This is included in core since Drupal 10.1.0." I just came to say the same thing.

    Here you can see on drupal 10 that when I installed you module with composer, it also installed the ckeditor contrib module.

    bevan@workhorse drupal_blog]$ git diff composer.lock 
    diff --git a/composer.lock b/composer.lock
    index b6e86c9..6504d70 100644
    --- a/composer.lock
    +++ b/composer.lock
    @@ -4,7 +4,7 @@
             "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
             "This file is @generated automatically"
         ],
    -    "content-hash": "e1cf633462082db0efe8c3151e1ed608",
    +    "content-hash": "c6a676cebff0d8376b417b5103868afc",
         "packages": [
             {
                 "name": "asm89/stack-cors",
    @@ -1140,6 +1140,146 @@
                 ],
                 "time": "2022-12-14T08:49:07+00:00"
             },
    +        {
    +            "name": "drupal/ckeditor",
    +            "version": "1.0.2",
    +            "source": {
    +                "type": "git",
    +                "url": "https://git.drupalcode.org/project/ckeditor.git",
    +                "reference": "1.0.2"
    +            },
    +            "dist": {
    +                "type": "zip",
    +                "url": "https://ftp.drupal.org/files/projects/ckeditor-1.0.2.zip",
    +                "reference": "1.0.2",
    +                "shasum": "fec2ca9ad852a00c7b9584cb6040dc860364c481"
    +            },
    +            "require": {
    +                "drupal/core": "^9.4 || ^10"
    
    

    For even more confirmation:

    ls html/modules/contrib/ckeditor
    ckeditor.admin.inc  ckeditor.api.php  ckeditor.info.yml  ckeditor.libraries.yml  ckeditor.module  ckeditor.post_update.php  ckeditor.services.yml  config  css  js  LICENSE.txt  src  templates  tests  vendor
    

    I'm not sure why it does that, but it appears to create conflicts on the config page where ckeditor and ckeditor 5 are both listed and they both throws errors on the page "CKEditor 5 only works with HTML-based text formats. The "Markdown" (markdown) filter implies this text format is not HTML anymore."

    Yeah,, it's not working on Drupal 10.

  • 🇯🇵Japan tyler36 Osaka

    DEV version installs for me on Drupal 10.1.4 but it has a dependency of CKEditor (v4).

    ## Test

    1. Install ckeditor_markdown (dev)

    $ composer require 'drupal/ckeditor_markdown:1.x-dev@dev'
    ...
    Gathering patches for dependencies. This might take a minute.
      - Installing drupal/ckeditor (1.0.2): Extracting archive
      - Installing drupal/ckeditor_markdown (dev-1.x 555ffc0): Cloning 555ffc00e9 from cache
    

    2. Enable ckeditor_markdown

    $ drush en ckeditor_markdown                             
    The following module(s) will be enabled: ckeditor_markdown, ckeditor
    
     Do you want to continue? (yes/no) [yes]:
    

    3. Add button to Text editor toolbar.
    - No button is available on "CKEditor 5" Text editor
    - Button appears under "CKEditor" (v4) Text editor

  • Status changed to Closed: works as designed 8 months ago
  • 🇧🇪Belgium JeroenT 🇧🇪
Production build 0.71.5 2024