Hi.
As it is now..... when you select some text and then use the Font size dropdown to select some font size this tag gets created around the text.
<font size="selected size">text here </font>
I want it to work like this:
<span style="font-size:selected-size;">text here</span>
Can this be done....
Using the Style dropdown are working against the span tag, so it is probably doable, just do not have the knowledge on how to implement, and want to solv it in a general manner ( as much as possible) and hopefully get it into the FCK code.....
Okay, most of the endusers probably like it the way it is today (font-size), so it would probably be nice to be able to set a property in the fckconfig.js file that controls how the font-size are to be handled,
either using the DEPRECATED FONT tag or
using the SPAN tag with style="font-size:size here;"
Can some javascript guru come up with a solution
Fri, 04/15/2005 - 03:26
#1
addon: font-size bug ??
Then select one or more words within the text you changed.
Try to set to another size.
As it is not it does not work.
If you look at the source then you should see some nested FONT tags, but the inner FONT tag does not make any difference.
Using span tag and style="the size" works nicely.
This might be another reason to enable handling of font-sizes using the span tag and hopefully optionally make it possible to use px values as well.
RE: Font size bug I reported above
When I test this in the online demo on fckedtior.net it works as it should.
I would still like it to optionally work with font-size in pixels.
Hope someone can make it possible to set some property in fckconfig, if this is on then use SPAN tag and style="font-size:10;" way of dealing with font-size, else use as is today.
RE: Font size bug I reported above
Y not use XML and some styles? That would probably let you do px et al... not as intuitive, maybe, but would be 'portable' kinda. Or whatever. Nevermind. Prolly want both, neh? Style AND size? Sheesh. [-=
This IS an 'open source' project folx. While I'm the first to say CVS PLEASE (well, maybe not the first), diff patches probably work if you can figure out how to apply them.
To those struggling through the code, I applaud you. And send supportive vibes.
Heh.
I always thought it was DEPRECIATED.
Funny, neh? :-p
RE: Font size bug I reported above
I confirm what Denny said.
I try to change the "font size" in order to use the font size in px, and after many tests, I use the style select.
To apply it, remove the 'FontSize' in the toolbar, and apply those styles in fckstyles.xml
<Style name="10px" element="span">
<Attribute name="style" value="font-size: 10px;" />
</Style>
<Style name="12px" element="span">
<Attribute name="style" value="font-size: 12px;" />
</Style>
[.. and all the sizes you want]
I think it's a temporary solution, which disable a functionnality and insert a few styles unwanted, but It's a solution which can be easily used.
Hope it help.....
Fred P.
RE: Font size
Using XML styles is one way to handle it, yes.
I would still very much like it to be possible to handle the font-size in pixels using the font-size dropdown. Hopefully possible to set a property in fckconfig.js that controls how to handle the font-size, either as now:
using the FONT tag and size="2"
or
the new way using SPAN tag and style="font-size:12px"
Thanks for reply
RE: Thanks fpeyrard
that was very helpful.. thanks a lot!... btw i m still stuck at handlinkg text color.. when i assign text color to some piece of text.. it generates <font color=''> tag..
To Denny Valliant
If you know how to implement use of font-size in pixels, why do you not show how it can be done?
RE: To Denny Valliant
I'm holding a diagram of how to do it up to the screen as I type.
grep and logic are our friends!
To Denny Valliant
It just might be you are one of those.
If you do not have something constructive to say, then you probably should not say it. At least not in this forum.