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

Few things #103

Closed
wmdhosting opened this issue May 22, 2023 · 1 comment
Closed

Few things #103

wmdhosting opened this issue May 22, 2023 · 1 comment
Assignees
Labels

Comments

@wmdhosting
Copy link

wmdhosting commented May 22, 2023

Hey :)

1. Dont see how is posiblle for links to Open in new window

2. New image transform is great, but when i add other image options in config, transform do not show

I think all this option would be great by deafult..
"image": { "toolbar": [ "imageStyle:inline", "imageStyle:wrapText", "imageStyle:breakText", "|", "toggleImageCaption", "imageTextAlternative"

3. Is it posiblle to add all table options by deafult. Tableproperties, Cellproperties

Snag_5366dee0
Tableproperties, Cellproperties

4. How to add for example Template button. .

Snag_5368f164

Thx

Additional info

  • Craft version: Craft Pro 4.4.11

  • Plugins & versions: CKEditor | 3.4.0

@brandonkelly
Copy link
Member

  1. Dont see how is posiblle for links to Open in new window

Add the following to your Config Options:

{
  "link": {
    "decorators": {
      "isExternal": {
        "attributes": {
          "rel": "noopener noreferrer",
          "target": "_blank"
        },
        "label": "Open in a new tab",
        "mode": "manual"
      }
    }
  }
}
  1. New image transform is great, but when i add other image options in config, transform do not show

You can choose which image transforms should be available to the editor from the field settings, under the Assets section.

the Assets section of a CKEditor’s field settings
  1. Is it posiblle to add all table options by deafult. Tableproperties, Cellproperties

I’ve just included TableProperties and TableCellProperties in the core build (3426ecd). You will still need to configure them manually, though:

{
  "table": {
    "contentToolbar": [
      "tableRow",
      "tableColumn",
      "mergeTableCells",
      "|",
      "tableProperties",
      "tableCellProperties"
    ],
    "tableCellProperties": {
      "backgroundColors": [
        {
          "color": "hsl(120, 75%, 60%)",
          "label": "Green"
        }
      ]
    }
  }
}

How to add for example Template button. .

Templates is a premium CKEditor plugin, which requires an enterprise license to access, which we don’t currently have.


In the future, please post these as individual Q&A discussions / Idea discussions depending on their nature. (Issues should only be used for actual bug reports – which none of these points are.)

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

3 participants