Print Page | Close Window

Can i customize the Font size?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=15713
Printed Date: 28 March 2026 at 11:06pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Can i customize the Font size?
Posted By: grafixou
Subject: Can i customize the Font size?
Date 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.



Replies:
Posted By: WebWiz-Bruce
Date 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.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: grafixou
Date 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.


Posted By: WebWiz-Bruce
Date 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 ( http://www.mozilla.org/editor/midas-spec.html - 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')"


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net