urgh this is alot more complex then i expected so i tested the font sizes in a topic and i got the same issue u did, wasnt parsing size=9, which is weird cause it was parsing inside the acp bbcode test so i decided to dig around and found the reason was the delimiter on the editor itself you did the first part correct its just complicated cause the javascript has a limit less then 9 here is the code from the javascript i edited
ips.textEditor.bbcode.js located in public/js
i added
9: 72
to
var IPS_BBCODE_POPUP = null;
var IPS_URL_STORE = {};
var IPS_SIZE_ARRAY = { 1: 8,
2: 10,
3: 12,
4: 14,
5: 18,
6: 24,
7: 36,
8: 48};
and changed the value from
/* Specific HTML conversion stuffs */
myParser.addHTMLTextFilter( function( text )
{
} );
function fontSizeToPx( size )
{
size = parseInt( size );
if ( size > 0 && size < 9 )
{
return IPS_SIZE_ARRAY[ size ];
}
else
{
return size;
}
}
to
/* Specific HTML conversion stuffs */
myParser.addHTMLTextFilter( function( text )
{
} );
function fontSizeToPx( size )
{
size = parseInt( size );
if ( size > 0 && size < 10 )
{
return IPS_SIZE_ARRAY[ size ];
}
else
{
return size;
}
}
i even delved further into experimenting and discovered a way to add your own custom listing in the sizes dropdown selection in the text editor
public/js/3rd_party/ckeditor the file ips_config.js
/* Only use font-sizes we recognize */
config.fontSize_sizes = '8/8px;10/10px;12/12px;14/14px;18/18px;24/24px;36/36px;48/48px';
this line i added
/* Only use font-sizes we recognize */
config.fontSize_sizes = '8/8px;10/10px;12/12px;14/14px;18/18px;24/24px;36/36px;48/48px;72/72px';
and it showed up in the Size Dropdown select as 72 in 72 font size when i clicked it and wrote then used the standard editor it said size=9
before u follow what i said above please test the custom font size inside ACP's Test BBCode Parsing to see if the size works afterwards do what i said above and tell me if it works