Created
February 19, 2024 07:34
-
-
Save umkasanki/eb73c942200006792dd985b51b268a48 to your computer and use it in GitHub Desktop.
craftcms. ckeditor config sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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