Trumbowyg: Allow setting only a couple formatting options

Created on 3 Sep 2014  ·  4Comments  ·  Source: Alex-D/Trumbowyg

Right now formatting options allows to use p, blockquote, h1, h2, h3 and h4. It would be beneficial for me to only allow using p and h1.

Is such change possible?

question

Most helpful comment

how i can custom list style
could u help me

All 4 comments

You can already do that :

$('.editors').trumbowyg({
    btnsDef: {
        // Customizables dropdowns
        formattingLight: {
            dropdown: ['h1', 'p'],
            ico: 'formatting' // Apply formatting icon
        }
    },
    btns: ['viewHTML',
        '|', 'formattingLight', // Replace default formatting by your custom dropdown
        '|', jQuery.trumbowyg.btnsGrps.semantic,
        '|', 'link',
        '|', 'insertImage',
        '|', jQuery.trumbowyg.btnsGrps.justify,
        '|', jQuery.trumbowyg.btnsGrps.lists,
        '|', 'horizontalRule'],
});

Thanks: ]

how i can custom list style
could u help me

I thinks your problem is different from the original post. I invite you to create a new issue. Then, I don't know what you mean.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MACscr picture MACscr  ·  6Comments

mur-wtag picture mur-wtag  ·  3Comments

akupiec picture akupiec  ·  4Comments

idansh picture idansh  ·  4Comments

DirkOlten picture DirkOlten  ·  3Comments