Skip to content

Instantly share code, notes, and snippets.

@lindseybradford
Created June 10, 2020 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lindseybradford/6e3927ae030974b5c78fbfbcea7ac6d9 to your computer and use it in GitHub Desktop.
Save lindseybradford/6e3927ae030974b5c78fbfbcea7ac6d9 to your computer and use it in GitHub Desktop.
Redactor Configs Semanticly Ranked Headings
{
"buttons": [
"formatting",
"bold",
"italic",
"unorderedlist",
"orderedlist",
"link",
"image",
"line",
"video"
],
"plugins": [
"fullscreen",
"video"
],
"linkNewTab": true,
"toolbarFixed": true,
"formattingHide": [
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
],
"formattingAdd": {
"h1": {
"title": "Heading 1",
"api": "module.block.format",
"args": {
"tag": "h2",
"class": "heading-lg",
"type" : "toggle",
"style": {
"fontSize": "30px",
"fontWeight": "bold"
}
}
},
"h2": {
"title": "Heading 2",
"api": "module.block.format",
"args": {
"tag": "h2",
"class": "heading-md",
"type" : "toggle",
"style": {
"fontSize": "24px",
"fontWeight": "bold"
}
}
},
"h3": {
"title": "Heading 3",
"api": "module.block.format",
"args": {
"tag": "p",
"class": "heading-sm",
"type" : "toggle",
"style": {
"fontSize": "24px",
"fontWeight": "200"
}
}
},
"h4": {
"title": "Heading 4",
"api": "module.block.format",
"args": {
"tag": "p",
"class": "heading-xs",
"type" : "toggle",
"style": {
"fontSize": "20px",
"fontWeight": "200"
}
}
},
"h5": {
"title": "Heading 5",
"api": "module.block.format",
"args": {
"tag": "p",
"class": "heading-sub",
"type" : "toggle",
"style": {
"fontSize": "14px",
"fontWeight": "bold",
"textTransform": "uppercase"
}
}
}
}
}
@lindseybradford
Copy link
Author

Screenshot from 2020-06-10 18-16-15
Screenshot from 2020-06-10 17-16-44
Screenshot from 2020-06-10 17-11-50
Screenshot from 2020-06-10 17-05-22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment