storypioneers / kirby-wysiwyg

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

H1 & H2 always create H5 & H6 #14

Closed good-idea closed 9 years ago

good-idea commented 9 years ago

I'm having a problem with the H1 and H2 buttons in the editor - no matter how I mess around with the config or blueprint settings, they always give me ##### this and ###### this

I'm having the same issue in several installations of kirby. Anything I can do?

janstieler commented 9 years ago

+1

rgalton commented 9 years ago

I also had this problem but solved it by hyphenating 'first-header' and 'second-header' in my blueprints, e.g.:

fields:
    richtext:
        label: Text
        type:  wysiwyg
        first-header: h2
        second-header: h3
good-idea commented 9 years ago

Strange, this didn't do the trick for me - it's still giving me h5 and h6. just styling them differently for now.

float-mode commented 9 years ago

Same here. I get h5 and h6 by default

Melros commented 9 years ago

You can overwrite these settings in site/config/config.php with the following settings:

c::set('field.wysiwyg.first-header', 'h1');
c::set('field.wysiwyg.second-header', 'h2');

But I am wondering too why h5 and h6 are set as default in site/fields/wysiwyg/wysiwyg.php. So I created a Pull Request to make h1 and h2 as default according to the default h1and h2buttons in the editor.

See Pull Request: https://github.com/storypioneers/kirby-wysiwyg/pull/17

dgdsp commented 9 years ago

changed in current master