storypioneers / kirby-wysiwyg

WYSIWYG panel field for Kirby CMS
Other
125 stars 16 forks source link

Dynamically style Header 1& Header 2 headings #8

Closed JonasDoebertin closed 9 years ago

JonasDoebertin commented 9 years ago

Currently, the headline styles are defined like this:

.wysiwyg-editor h2 {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 1em;
}

.wysiwyg-editor h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1em;
}

While this is fine in most cases, users may specify different HTML heading tags to be used instead. To compensate for this, these styles should be injected dynamically.

JonasDoebertin commented 9 years ago

Related article

JonasDoebertin commented 9 years ago

Should be done with a0fe4ed77c936deeac7b93e5c7b6b1bc8e931241.