Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Can i customize the Font size?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedCan i customize the Font size?

 Post Reply Post Reply
Author
grafixou View Drop Down
Newbie
Newbie


Joined: 04 July 2005
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote grafixou Quote  Post ReplyReply Direct Link To This Post Topic: Can i customize the Font size?
    Posted: 04 July 2005 at 1:46am
Hello guys,
 
first of all, Let me thank the great guy, or guys who did this excellent text editor!!REALLY GREAT! VERY GOOD JOB, and especially THANK YOU FOR SHARING THAT with us.
 
Now my problem is that i want to customize the font size, and i mean precisely that i want to apply for example a font size of 11 px from the font size list of the editor (); wich is not possible because that list uses a javascript function that we cannot customize, since it goes from position 1 (10 px) to 7, and the sizes are pre-programmed, we cannot change them as i see.Confused
So, position 1 is 10 px and position 2 is 12 px, and i want to have 11 px!! is there any solution?? Can anybody help me guys?Cry i'm sticked with that!Cry
Thanks a lot in advance Guys.Wink
F.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2005 at 5:21am
Edit the file 'includes/RTE_iframe_select_size.asp'

The part you need to modify is plain HTML so should be quite easy to do.
Back to Top
grafixou View Drop Down
Newbie
Newbie


Joined: 04 July 2005
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote grafixou Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2005 at 11:52pm
Thanks a lot boRg for your answer Wink
but i already opened the file 'includes/RTE_iframe_select_size.asp' and i was only able to change the font size of the numbers that appear in the size list ()
For example i changed the number 2 in the list to 11 px istead of 12 px :
<tr onMouseover="overItem(this)" onMouseout="outItem(this)" OnClick="mouseClick('2')" style="cursor: default;">
<td class="pStyle" style="font-size: 11px">2</td>
So now, 2 appears in the list as 11 px, but when i select a text in the text editor and i click on number 2 in the list, the new size of my selected text is 12 px and not 11 px like i wanted it to be!
So the size modification in the file 'includes/RTE_iframe_select_size.asp' concerns only the size that appear in the list and not the size i want to apply to my text in the text editor!
Maybe i'm wrong! do you have any solution for that please.
THANKS A LOT IN ADVANCE
Grafixou.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2005 at 5:38am
I've just been over the code to remind myself how it is done.

In the file that shows the drop down for the font selection, CSS font sizes are used to keep the font size the same for display purposes.

What is actually passed to the javascript function that changes the font size is the number. EG. If you select font size 1 then the number 1 is passed to the javascript function to set the font size, not a CSS number for the font size in pixels.

The javascript function then sends a command to the browsers own API for a font size of '1'

The supported web browsers have their own RTE API built into them by the makers of the browser to handle RTE features of that browser (Mozilla have their own Midas API for this)

When the browser is told to change apply a font size each browser handles this differently, so IE may just put in <font-size=1> where as Mozilla may convert this to a CSS value.

To put it in short terms, trying to change the font size to the value of  11px isn't going to be simple as each browser will handle this differently and you will need to write some code that over-writes the browsers own handling of font sizes.

I don't know how the various browsers will handle it but you could try the following to get a CSS font size of 11px:-

OnClick="mouseClick('1.5')"
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.