-
Notifications
You must be signed in to change notification settings - Fork 100
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
Heading style does not autoformat #449
Comments
Hi!
Could you explain a bit more? I'm not sure if I fully understand. If you want to apply some specific classes to headings, the configuration would look more or less like this: heading: {
options: [
{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
{ model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' },
{ model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' },
{
model: 'headingFancy',
view: {
name: 'h2',
classes: 'fancy' // Class in the content.
},
title: 'Heading 2 (fancy)',
class: 'ck-heading_heading2_fancy', // <- Dropdown's class.
// It needs to be converted before the standard 'heading2'.
converterPriority: 'high'
}
]
} The top-level |
If the default content styles don't work, make sure there are no clashes with some other stylesheets. |
It looks like something may be overriding the styles of the editor with a higher precedence. Please investigate your stylsheets. This is not reproducible in the demos we have. |
I'm using a custom build of ckeditor 5 and whenever I try to change the heading style the text doesn't change even though the console still show the data text with heading tag:
There's no errors shown.
Here's my ckeditor element:
Here's my custom ckeditor file (Which I use to build my custom editor):
So what should I do?
The text was updated successfully, but these errors were encountered: