KiF
Active member
libraryXenForoBbCodeFormatterBase.php Original
libraryXenForoBbCodeFormatterBase.php Custom
After first save the html of the message is
But I just resave message and the html of the message has become
I guess it's not enough to edit Base.php to get what I need, isn't it?
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';
}
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>
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>