Skip to content

Instantly share code, notes, and snippets.

@umkasanki
Created February 19, 2024 07:34
Show Gist options
  • Save umkasanki/eb73c942200006792dd985b51b268a48 to your computer and use it in GitHub Desktop.
Save umkasanki/eb73c942200006792dd985b51b268a48 to your computer and use it in GitHub Desktop.
craftcms. ckeditor config sample
{
"code": {
"indentSequence": " "
},
"heading": {
"options": [
{
"class": "ck-heading_heading1",
"model": "heading1",
"title": "Heading 1",
"view": "h1"
},
{
"class": "ck-heading_heading2",
"model": "heading2",
"title": "Heading 2",
"view": "h2"
},
{
"class": "ck-heading_paragraph",
"model": "paragraph",
"title": "Paragraph"
}
]
},
"link": {
"addTargetToExternalLinks": true,
"decorators": {
"addClassStyle1": {
"attributes": {
"class": "btn-cta btn"
},
"label": "CTA button",
"mode": "manual"
},
"openInNewTab": {
"attributes": {
"rel": "noopener noreferrer",
"target": "_blank"
},
"defaultValue": false,
"label": "Open in a new tab",
"mode": "manual"
}
}
},
"list": {
"properties": {
"reversed": false,
"startIndex": true,
"styles": false
}
},
"style": {
"definitions": [
{
"classes": [
"text-accent"
],
"element": "p",
"name": "Accented text"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment