Support CKEditor 5's table properties and cell properties plugins in Full HTML

Created on 28 November 2022, about 2 years ago
Updated 14 August 2024, 4 months ago

Problem/Motivation

Although the possibility to add the table properties and table cell properties plugins exists through a mymodule.ckeditor5.yml and they appear in the edit area but the input from those plugins is ignored.
The input to table properties for example is reflected as styles ex:<table style="width:50%;">...</table>. Using the example we can list this as

    elements:
      - <table>
      - <table style>
      - <tr>
      - <td>
      - <td rowspan colspan>
      - <th>
      - <th rowspan colspan>
      - <thead>
      - <tbody>
      - <tfoot>
      - <caption>

This unfortunately does not work yet or I do not understand how to declare tables with styles in the mymodule.ckeditor5.yml.
To make it work one should uncheck the Limit allowed HTML tags and correct faulty HTML in the text format settings so this is clear a filtering issue and one should declare the elements correctly.

It would be a lot better if the maintainers provided examples for such cases.
Personally I consider this feature important and a good one to be part of core.

Steps to reproduce

Example to enable table properties:

mymodule_table:
  ckeditor5:
    plugins:
      - table.TableProperties
    config:
      table:
        contentToolbar: [  tableProperties ]
  drupal:
    label: Table
    library: core/ckeditor5.table
    admin_library: ckeditor5/admin.table
    toolbar_items:
      insertTable:
        label: table
    elements:
      - <table>
      - <table style>
      - <tr>
      - <td>
      - <td rowspan colspan>
      - <th>
      - <th rowspan colspan>
      - <thead>
      - <tbody>
      - <tfoot>
      - <caption>

Release notes

CKEditor 5 now provides advanced formatting for tables and table cells when used in Full HTML (or Full HTML-like) text formats.

โœจ Feature request
Status

Fixed

Version

11.0 ๐Ÿ”ฅ

Component
CKEditor 5ย  โ†’

Last updated 6 days ago

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany Emil Stoianov

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

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.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States pmagunia Philadelphia ๐Ÿ‡บ๐Ÿ‡ธ

    Created an upstream CKE5 feature issue as suggested by Wim for TableProperties.

    https://github.com/ckeditor/ckeditor5/issues/13879

    Additional details may need to be added.

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

    To those who need this, this is a regression that potentially blocks an update to CKEditor 5 from 4.

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

    Sorry, I acted a bit too fast here. I misinterpreted this as being about rowspan and colspan attributes.

    But this appears to be primarily about attributes on the <table> element, which is why the issue summary is referring to <table style>.

    What's missing here is an overview of the attributes that you're missing. That's also missing in https://github.com/ckeditor/ckeditor5/issues/13879. Before the CKEditor team can act on this, we need more precision ๐Ÿ˜Š

    I think this is about the following "properties":

    Those map to the following attributes/attribute values:

    • <table align="left center right">
    • <table border>
    • <table bgcolor>
    • <table width>

    IOW: see https://www.w3.org/TR/html4/struct/tables.html#h-11.2.1 โ€” this is all deprecated in HTML5 but allowed in HTML4.

    That means everything in that CKEditor 5 UI would be usable except for: border style (just on/off would be supported), border color, border width and table height (only width is supported).

    Which also means that that CKEditor 5 UI would need to be reduced in Drupal, since we specifically don't allow <style>.

    Can you confirm that would fulfill your needs?

  • Status changed to Active over 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States pmagunia Philadelphia ๐Ÿ‡บ๐Ÿ‡ธ

    I did update the CKEditor5 issue thread with the 4 attributes you mentioned align, border, bgcolor, width.

    For me, those should be sufficient.

    I'm not sure I updated the CKEditor5 issue thread correctly; please let me know if I missed something.

    Thanks! :-)

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    Re-uploading the patch from โœจ CKEditor 5 is missing table properties and table cell properties plugins Closed: duplicate to this issue. Credit to: jordan.jamous

    No idea what the patch test result will be here.

  • Open on Drupal.org โ†’
    Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    Not currently mergeable.
  • @bramdriesen opened merge request.
  • last update over 1 year ago
    29,380 pass
  • Status changed to Needs work over 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Thanks for the initial patch, @BramDriesen!

    But โ€ฆ it's enabling this functionality that relies on <table style=โ€ฆ> for all text formats whose CKEditor 5 configuration has the Table functionality enabled. We need to enable these features conditionally: in text formats that are unrestricted and hence allow style attributes.

    An example of how to do that can be found in #3353010-6: Add table.TableColumnResize for formats with arbitrary HTML supported โ†’ ๐Ÿค“

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

    Yeah of course, this was just a copy pasta from the other issue rebased on 10.1.x ๐Ÿ˜‰ that's also why I left it on NW. I doubt the MR will even work at the current moment.

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

    ๐Ÿ‘ Great!

    The condition stuff to automatically enable based on Full HTML or not is pretty powerful, but also not that intuitive, so I was just making sure I kept you unblocked! If you already figured this out on your own, you deserve the ๐Ÿง™ emoji ๐Ÿ˜„

  • last update over 1 year ago
    29,380 pass
  • last update over 1 year ago
    29,380 pass
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    I did not figure that out on my own, but happy to take the ๐Ÿง™ emoji ๐Ÿ˜….

    I *guess* this last commit(s) is a better implementation more in line with the one you referenced as example. I tested this out (with the tugboat URL) and was able to set table and cell properties. One thing I noticed was that cell properties were shown while doing the edit, table properties not until after saving and viewing the page.

    Also adding the need manual testing tag since automated tests will be difficult like you said in that other issue.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    Something is setting the <tr/> background colour to white, so that is what's causing the "issue" that you can't see the background colour being applied while editing.

    tr,.draggable-table.tabledrag-disabled tr {
        color: var(--color-text);
        background: var(--color-white);
    }
    
  • last update over 1 year ago
    Custom Commands Failed
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    Pretty sure that last removal will not pass review, but I also have no idea how to properly fix that.

  • last update over 1 year ago
    29,380 pass
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Woah, did not expect this to run into Claro CSS troubles ๐Ÿ˜… Looks like that Claro CSS was introduced in #3021388: Table style update โ†’ .

    I'm surprised that a not so specific selector like tr, .draggable-table.tabledrag-disabled tr {โ€ฆ} can trump style attributes?! ๐Ÿ˜ณ

    Can you show what the computed CSS specificity levels are?

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    can trump style attributes?!

    It's not really the case (I think). The issue I was having is that the style on the <table> element was not properly showing because of the background colours introduced in that ticket.

    Setting a style on a <td> or <th> did work as expected and overrides what is set in CSS. I was not able to set a style on a <tr> element using the UI.

    CSS specificity levels

    I had to google that ๐Ÿ˜… fron-end stuff is not my forte haha. But I don't think that this is causing an issue here. It's just *where* that background colour is being set by CKEDITOR and Claro.

    Here is an example of what CKEDITOR is generating.

    <table style="background-color:hsl(120, 75%, 60%);width:400px;">
        <caption>caption</caption>
        <thead>
            <tr>
                <th>
                    th
                </th>
                <th>
                    th
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    td
                </td>
                <td style="background-color:hsl(0, 75%, 60%);">
                    td
                </td>
            </tr>
            <tr>
                <td>
                    td
                </td>
                <td>
                    td
                </td>
            </tr>
        </tbody>
    </table>
    

    And a screenshot of how it looks

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    I guess a better solution (instead of me removing CSS that is used on so many places ๐Ÿ˜…) would have been to exclude that table/tr style on the CKEDITOR element with one of these classes. ck ck-content ck-editor__editable ck-rounded-corners ck-editor__editable_inline ck-blurred

  • last update over 1 year ago
    Composer error. Unable to continue.
  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    I think it can go through a review now ๐Ÿ˜‡

  • last update over 1 year ago
    Custom Commands Failed
  • last update over 1 year ago
    29,383 pass
  • last update over 1 year ago
    29,383 pass
  • Assigned to wim leers
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ
  • Issue was unassigned.
  • Status changed to Postponed: needs info over 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Looking for a particular screenshot to confirm that there is no visual regression ๐Ÿค“

  • last update over 1 year ago
    Custom Commands Failed
  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    When using the default Basic HTML text format with just the table added I get the following. It basically just doesn't show you the options. Removing the background colour in the CKeditor with the CSS I added doesn't have an impact.

  • last update over 1 year ago
    29,383 pass
  • Status changed to Needs work over 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Ah, I see, we're overriding

    tr,
    .draggable-table.tabledrag-disabled tr {
      color: var(--color-text);
      background: var(--color-white);
    }
    

    to

    .ck tr,
    .ck td {
      background-color: transparent;
    }
    

    Questions:

    1. Shouldn't we also do this for th, where Claro has background: var(--color-gray-050);?
    2. More importantly, shouldn't we generalize this to work for all themes? We can do that by:
      1. Creating a new core/modules/ckeditor5/css/table.css file, just like we already have core/modules/ckeditor5/css/image.css which does serves the same pattern: .ck .image {โ€ฆ}, .ck figcaption โ€ฆ { โ€ฆ } etc.
      2. Add this to a new internal.drupal.ckeditor5.table asset library (modeled after internal.drupal.ckeditor5.image), which only adds this CSS file โ€” besides that it just depends on core/ckeditor5.table
      3. Tweak the CKEditor 5 plugin definitions for ckeditor5_table_properties and ckeditor5_table_cell_properties to load this asset library

      Tada! This should now work consistently across all themes, and we've managed to avoid making Claro CKEditor-aware ๐Ÿค“

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    More importantly, shouldn't we generalize this to work for all themes?

    That's why we do code reviews ๐Ÿ˜. Totally agree with your approach! Will see if I can put that together in the coming days!

  • 3:54
    2:03
    Running
  • last update over 1 year ago
    29,388 pass
  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    I think leaving the hover state background colour is fine, see screenshot below. (unless there is some CSS magic to detect the colour that is set and to tone it down a bit to give the hover effect in the same colour)

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    I guess we can remove Claro as tag since there is now a general fix? :) also tagging DrupalCamp Ruhr 2023 where I worked on the issue.

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

    This looks great now!

    Ideally we'd have automated tests for this, but then we'd just be duplicating the test coverage that CKEditor 5 already has upstream.

    I think the only thing that remains is for me (or another CKEditor 5 module maintainer) to do manual testing and scrutinize every line of code ๐Ÿค“

    I hope to RTBC this next week! Great work here ๐Ÿ˜Š๐Ÿ™

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

    Re-tagging Claro because this specifically needs testing in Claro, even if it's not modifying Claro :)

  • last update over 1 year ago
    29,365 pass, 2 fail
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    Thanks @Wim Leers ๐Ÿ˜‰ short feedback loops are nice!

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    Fixed broken tag.

  • last update over 1 year ago
    29,388 pass
  • Status changed to Needs work over 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Tested out all kinds of various combos

    Table
    Added some background color
    Moved the alignment
    Added some border at different sizes

    But if we are going to add the ability to set background color we should allow them to set the text color. Or auto change it to an accessibility passing color.

    Example if I set the background to black the text should be white.

    Would be nice to be able to control what properties are available. Though that may be out of scope of this one.
    But I do think there should be some way to turn off properties all together for now. That's a lot of power to put into a users hand.
    Existing sites may have given some roles the ability to create tables but now they can create tables that could be made into an accessibility issue very easily.

  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    But if we are going to add the ability to set background color we should allow them to set the text color. Or auto change it to an accessibility passing color.

    Example if I set the background to black the text should be white.

    Isn't that the responsibility of the content editor? E.g we also don't cover someone setting a white text on a white background. Also, core CKEditor is also not covering this. You can test it out here: https://ckeditor.com/docs/ckeditor5/latest/features/tables/tables.html

    Would be nice to be able to control what properties are available. Though that may be out of scope of this one.
    But I do think there should be some way to turn off properties all together for now. That's a lot of power to put into a users hand.
    Existing sites may have given some roles the ability to create tables but now they can create tables that could be made into an accessibility issue very easily.

    Yeah, but the feature is only available for full_html anyway. Which should only be given to experienced users because it has implications. I would say it's out of scope? But who am I to say that ๐Ÿ˜.

    Setting it back to NR for now so @Wim Leers can also take a look/comment about the above.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Fair point about the accessibility being on the editors.

    Would still say a yes/no switch would be needed. Can see many sites allowing editors to create tables but not wanting them to have this level of control. Without a switch itโ€™s all or nothing.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    Not sure how we can implement that. That would mean we need to conditionally add (or enable/disable) checkbox options to only the full_html text format editor under text styles. Won't that cause an UI quirk?

    Don't get me wrong, I get where you are coming from :-) but the fact full_html is already an "elevated rights" thingie, I feel like adding such checkbox logic adds unnecessary complexity.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    Hmm sorry, it's not really only "full html".

    when not using filter_html (meaning, on a "Full HTML"-esque format).

    I guess in that case it would be possible to add a checkbox if that would be desired. Let's see what one of the maintainers of CKEditor thinks about this.

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

    @smustgrave already did the manual testing. Removing tag.

    Configuration

    Adding configuration for this is definitely possible.

    But.

    Any Full HTML-esque format already allows ANY markup anyway. So I don't see the point. Even if it would then not be available in the CKEditor 5 table (cell) properties UI, they could still achieve the same by modifying the markup directly.

    Which means that for once I must disagree with you, @smustgrave ๐Ÿ™ˆ I'm curious to hear if you found the above convincing!

    Review

    1. I have only one nitpick and 2 requests for a clarifying comment (posted a suggestion).
    2. Since the very recent changes, AFAIK all MRs need to target the 11.x branch: everything gets merged their first. Would you mind first addressing my feedback on the MR and then transplanting your commits to a new MR that targets 11.x? ๐Ÿ™

    Then this will IMHO be RTBC. It won't ship in 10.1.x anymore though, but it would in 10.2!

  • 5:51
    4:29
    Running
  • 58:07
    56:28
    Running
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    Re #47 Will do! Already applied the nits and suggestions to the comments.

    The issue fork is confusing me, can't select 10.2.x as a target for the merge request, nor is 11.x available (I do see 11.0.x which seems a very very old branch from Dries himself. Will check later on how to fix that ๐Ÿ˜… will probably have to do a fetch manually on the issue fork.

    I also can't select 10.2.x yet from the version dropdown here in the issue queue.

  • last update over 1 year ago
    29,388 pass, 1 fail
  • @bramdriesen opened merge request.
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Hm โ€ฆ maybe we needed to switch the issue first? ๐Ÿค”

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

    Hah, looks like you figured it out in the meantime!

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    Did some manual fetching on the issue fork and then pushed a new branch ๐Ÿ˜…

    So now we have a MR for 11.x and 10.1.x (which will become 10.2.x I guess once it's created)

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    But what if some formats arenโ€™t full htm but allow for adding a table?

    For them to edit the markup directly theyโ€™d need the source button no? That may not be present

    Still think this will force some existing sites to alter their formats and how they let editors add tables that could be solved with an on/off switch like we do for other buttons.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    @smustgrave You won't get the options then. See screenshot in #32

  • Open on Drupal.org โ†’
    Environment: PHP 8.2 & MySQL 8
    last update over 1 year ago
    Waiting for branch to pass
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ
    But what if some formats arenโ€™t full htm but allow for adding a table?

    You won't get the options then. See screenshot in #32

    To elaborate:

    +    conditions:
    +      plugins:
    +        - ckeditor5_table
    +        # When arbitrary HTML is already allowed, it's harmless to enable CKEditor 5's UI for table cell properties.
    +        - ckeditor5_arbitraryHtmlSupport
    

    This says that this new plugin is automatically enabled if and only if a plugins condition is met. This particular plugins condition says that these 2 plugins (ckeditor5_table and ckeditor5_arbitraryHtmlSupport) must be enabled.

    ckeditor5_arbitraryHtmlSupport is only enabled when there are zero HTML restrictions, which typically means that the filter_html filter is not enabled โ€” see \Drupal\ckeditor5\Plugin\CKEditor5PluginManager::getEnabledDefinitions():

        // Only enable the arbitrary HTML Support plugin on text formats with no
        // HTML restrictions.
        // @see https://ckeditor.com/docs/ckeditor5/latest/api/html-support.html
        // @see https://github.com/ckeditor/ckeditor5/issues/9856
        if ($editor->getFilterFormat()->getHtmlRestrictions() !== FALSE) {
          unset($definitions['ckeditor5_arbitraryHtmlSupport']);
        }
    

    This is the same mechanism that e.g. ckeditor5_linkMedia uses to declare it should be enabled whenever ckeditor5_link and media_media are enabled:

    ckeditor5_linkMedia:
      ckeditor5:
        plugins:
          - drupalMedia.DrupalLinkMedia
        config:
          # Append the "Link" button to the media balloon toolbar.
          drupalMedia:
            toolbar: [drupalLinkMedia]
      drupal:
        label: Linked Media
        elements: false
        conditions:
          plugins:
            - ckeditor5_link
            - media_media
    

    IOW: it's declarative composability.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Won't die on this hill haha but still seems like something that should be controllable.

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

    @smustgrave Yeah I hear you. But for two decades now, Drupal core's stance has been that if you choose or anything like it, anything goes. Which does help keep the configuration simple of course!

    Note that nothing is stopping a contrib module from adding such configuration options :)

  • last update over 1 year ago
    29,397 pass
  • last update over 1 year ago
    29,401 pass
  • last update over 1 year ago
    29,401 pass
  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡ซ๐Ÿ‡ฎFinland lauriii Finland

    If I understood the argument from #53 correctly, it's saying that you should be able to use this feature without having to use Full HTML which I agree with. Ideally we wouldn't introduce use cases where you can do things through the UI that are otherwise not available. Not feeling super strongly about this though, but moving to NR to get input from @Wim Leers & others on this.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    you should be able to use this feature without having to use Full HTML

    This has been discussed multiple times already.

    (The filter_html filter strips 100% of style attributes for security reasons: it's a commonly used attack vector.)

    See: #2 to #11-ish. And then again by @smustgrave
    ๐Ÿ˜‰

  • Status changed to RTBC over 1 year ago
  • ๐Ÿ‡ซ๐Ÿ‡ฎFinland lauriii Finland

    Makes sense ๐Ÿ‘ I misunderstood the discussion because I only read the few of the last comments ๐Ÿ™ˆ

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    Yeah sure, no problem ๐Ÿ˜‡ Think Wim already explained his thoughts about it a few times ๐Ÿ˜‰

  • last update over 1 year ago
    29,402 pass
  • last update over 1 year ago
    29,402 pass
  • last update over 1 year ago
    29,411 pass
  • last update over 1 year ago
    29,417 pass
  • 21:20
    9:05
    Running
  • last update over 1 year ago
    29,437 pass
  • last update over 1 year ago
    29,437 pass
  • last update over 1 year ago
    29,445 pass
  • last update over 1 year ago
    29,473 pass
  • last update over 1 year ago
    29,499 pass
  • last update over 1 year ago
    29,499 pass
  • last update over 1 year ago
    29,531 pass
  • last update over 1 year ago
    29,549 pass, 2 fail
  • last update over 1 year ago
    29,554 pass
  • last update over 1 year ago
    29,562 pass
  • last update over 1 year ago
    29,566 pass
  • last update over 1 year ago
    29,571 pass
  • last update over 1 year ago
    29,801 pass
  • Status changed to Fixed over 1 year ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom longwave UK

    Committed and pushed 93aa6832a5 to 11.x. Thanks!

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed about 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ทBrazil murilohp

    Just uploading a static patch to be used on a D10.1.

  • Hi murilohp,

    Just uploading a static patch to be used on a D10.1.

    This patch does not work with the 10.1.5 version, maybe you know why?

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States asherry

    @Zulljin: Patch in #66 seemed to run ok for us on 10.1.5.

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance izus

    Hi,
    Here is the #66 patch but for Drupal 9 :)

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance izus

    Hi,
    updating my last patch (there was a wrong path)

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States emanaton

    Aaaaand here's a re-roll of the #70 for use in 10.1.5:

  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia queenielow

    Hi There,

    I'm on Core 10.1.6 but I still don't see the table property. Has this been fixed in core at all?

    Thanks,
    Queenie

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    @queenielow it should be on 10.2.0 or the 11.x branch on which it was committed.

  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine Nick Pasiuk

    Do we have the possibility to hide some ckeditor's Cell properties, for example, 'background'

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom Alina Basarabeanu

    Hi @BramDriesen
    I just updated to Drupal 10.2 and the

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium BramDriesen Belgium ๐Ÿ‡ง๐Ÿ‡ช

    The merge request was not merged, but the diff got committed directly (see #62). Not sure why that was done. The two merge requests should indeed get closed.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States justpro

    Ok. Using this patch works for me on Drupal 10 and I can see the Table properties. How can I import, modify and export the Table and TableProperties now in Drupal 10 custom module plugin for CKEditor5?

    Normally I do:
    import { Plugin } from 'ckeditor5/src/core'

    But this is not found:
    "import { Table } from 'ckeditor5/src/table'" or "import { Table } from 'ckeditor5-table/src/table' ". I need to add a new field to that Table Properties Balloon popup, but I am not able to import `Table` or `TableProperties` class. Please advise.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia arijits.drush India

    Drupal 9.5.11 patch in case anybody need.

Production build 0.71.5 2024