1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Redactor] Base.php question

Discussion in 'XenForo Development Discussions' started by KiF, Nov 30, 2013.

  1. KiF

    KiF Member

    libraryXenForoBbCodeFormatterBase.php Original
    PHP:
                    switch ($inputSize)
                    {
                        case 
    1$size '9px'; break;
                        case 
    2$size '10px'; break;
                        case 
    3$size '12px'; break;
                        case 
    4$size '15px'; break;
                        case 
    5$size '18px'; break;
                        case 
    6$size '22px'; break;

                        case 
    7:
                        default:
                            
    $size '26px';
                    }
    libraryXenForoBbCodeFormatterBase.php Custom
    PHP:
                    switch ($inputSize)
                    {
                        case 
    1$size '10px'; break;
                        case 
    2$size '11px'; break;
                        case 
    3$size '12px'; break;
                        case 
    4$size '13px'; break;
                        case 
    5$size '14px'; break;
                        case 
    6$size '15px'; break;

                        case 
    7:
                        default:
                            
    $size '16px';
                    }
    After first save the html of the message is
    HTML:
    <span style="font-size: 10px">Text</span>
    <br>
    <span style="font-size: 11px">Text</span>
    <br>
    <span style="font-size: 12px">Text</span>
    <br>
    <span style="font-size: 13px">Text</span>
    <br>
    <span style="font-size: 14px">Text</span>
    <br>
    <span style="font-size: 15px">Text</span>
    <br>
    <span style="font-size: 16px">Text</span>
    But I just resave message and the html of the message has become
    HTML:
    <span style="font-size: 11px">Text</span>
    <br>
    <span style="font-size: 11px">Text</span>
    <br>
    <span style="font-size: 12px">Text</span>
    <br>
    <span style="font-size: 13px">Text</span>
    <br>
    <span style="font-size: 14px">Text</span>
    <br>
    <span style="font-size: 13px">Text</span>
    <br>
    <span style="font-size: 16px">Text</span>
    I guess it's not enough to edit Base.php to get what I need, isn't it?
     

Share This Page