jordandelozier / wysibb

WYSIWYG BBcode editor
http://www.wysibb.com
246 stars 86 forks source link

To BBCode Issue #149

Closed KnightYoshi closed 3 months ago

KnightYoshi commented 8 years ago

When converting HTML to BBC if the default is overwritten the element is not converted to BBC, this seems to only affect bold, underline, strike, and italic. Instead it uses just text without the BBC markup.

Config

{
    allButtons: {
        bold : {
            title : CURLANG.bold,
            buttonHTML : '<span class="fa fa-bold fa-fw"></span>',
            excmd : 'bold',
            transform : {
            '<strong>{SELTEXT}</strong>' : '[b]{SELTEXT}[/b]',
            },
        } 
    } 
}

Anyone have an idea as to why just those are affected?