Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-07-16 05:24:04

JoeyG
New member
Registered: 2008-07-16
Posts: 3

<span> instead of <font> for font sizes

Instead of the standard font sizes dropdown list, I'd like to be able to create a custom list of font sizes (eg: small, medium, large) and have it generate something like: <span style="font-size: 12px">...</span>

can anyone tell me if this is already possible?

Offline

#2 2008-07-18 04:45:54

JoeyG
New member
Registered: 2008-07-16
Posts: 3

Re: <span> instead of <font> for font sizes

Anyone???

Offline

#3 2008-07-29 06:06:26

Pioden
Xinha Community Member
From: Bangor, Wales
Registered: 2008-06-06
Posts: 39
Website

Re: <span> instead of <font> for font sizes

Everything is possible Joey B-)

Have you looked at the source code? Changing the options available in the size list should be pretty easy (in theory) :-)

Offline

#4 2008-07-29 11:48:56

JoeyG
New member
Registered: 2008-07-16
Posts: 3

Re: <span> instead of <font> for font sizes

Thanks for the reply Pioden

I know there are configuration options to change the options that appear in the dropdown, you cannot change it to pixels because the <font> tag will not accept pixels in the size parameter, only 1,2,3,4 etc (which equates to pt not px)

I suspect you are right about having to dig into the source code to find a solution... the problem is I dont know where to start!... can you tell me (roughly) where I would find the relevant bit of source code which outputs the <font> tag?

Offline

#5 2008-07-29 12:31:19

Pioden
Xinha Community Member
From: Bangor, Wales
Registered: 2008-06-06
Posts: 39
Website

Re: <span> instead of <font> for font sizes

JoeyG wrote:

Thanks for the reply Pioden

No worries. The name's Huw by the way.

JoeyG wrote:

I suspect you are right about having to dig into the source code to find a solution... the problem is I dont know where to start!... can you tell me (roughly) where I would find the relevant bit of source code which outputs the <font> tag?

Try line 213 of the XinhaCore.js file :-) The sizes are laid out in the format "1 (8 pt)":"1", - I'm guessing you can replace this with any CSS/HTML compatible code. Try some stuff out and see what happens. I've found Xinha to be very easy to hack around in.

Let us know how you get on.

Offline

Board footer

Powered by FluxBB