Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default properties in tableCellProperties are not shown/used by ckeditor #326

Open
white-digital-mark opened this issue Dec 6, 2024 · 0 comments
Assignees
Labels

Comments

@white-digital-mark
Copy link

Description

When I set a 10px default padding for table cells they are not used by the editor (not in Craft or the front end of the site).
However when I open the cell settings it does show "10px" and when I change the value to 11px or 9px I see the padding appearing in Craft and the front end.

Now comes the best part, when I then change the value back to 10px it removes all padding in Craft and in the front end of the website.

Steps to reproduce

  1. add table cell default properties to settings
  2. add new table (no padding appears even though the settings contain padding)
  3. edit a cell to change default set padding
  4. padding appears
  5. reset to default set padding
  6. all padding disappears

Additional info

  • Craft version: 5.4.4
  • PHP version: 8.3.7
  • Database driver & version:
  • Plugins & versions: CKEditor 4.3.1

My Json settings:

{
  "alignment": {
    "options": [
      "left",
      "right"
    ]
  },
  "link": {
    "decorators": {
      "openInNewTab": {
        "attributes": {
          "rel": "noopener noreferrer",
          "target": "_blank"
        },
        "label": "Open in new tab",
        "mode": "manual"
      },
      "styleAsButton": {
        "attributes": {
          "class": "button cta-button"
        },
        "label": "Style as button",
        "mode": "manual"
      }
    }
  },
  "table": {
    "contentToolbar": [
      "tableColumn",
      "tableRow",
      "mergeTableCells",
      "tableProperties",
      "tableCellProperties"
    ],
    "tableCellProperties": {
      "defaultProperties": {
        "padding": "10px"
      }
    }
  }
}
@i-just i-just self-assigned this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants