Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - automatic setting of font in html
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Lockedautomatic setting of font in html

 Post Reply Post Reply
Author
abarker View Drop Down
Newbie
Newbie


Joined: 07 July 2005
Location: United States
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote abarker Quote  Post ReplyReply Direct Link To This Post Topic: automatic setting of font in html
    Posted: 21 July 2005 at 10:15am
The default font that you see when you first start typing in RTE is determined by the style sheet 'default_style.css'.  However, this has no effect on the font that is actually set in the html generated by RTE.  As a result, there is no guarantee that the font that you first see when typing in RTE will be the font that you will see when you view them RTE-generated html.
 
To overcome this, I came up with the idea of forcing the font to be set (just as it would when you select a font from the dropdown) when the RTE first loads.  Then whatever font you first see when you start typing in RTE will be the font that's actually set in the html.
 
I have searched the forums and tried several strategies for acheiving this.  I looked to see what command occurs when one of the fonts is selected from the dropdown, but triggering this command right in the script rather than when a selection is made results in a 'object expected error'.
 
I'd really like to get this to work, but am stumped.  Does anyone have any ideas?  If we get this figured out, it could make a great addition to the already great RTE!
Back to Top
karlsmarxs View Drop Down
Newbie
Newbie


Joined: 28 September 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote karlsmarxs Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2005 at 12:00pm

I have the same problem. Can anyone Help US???????? 

Back to Top
Unleash_Hell View Drop Down
Newbie
Newbie


Joined: 26 September 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Unleash_Hell Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2006 at 12:56pm
Same here! I want it to force a font to be set. Even when you paste from Word the font should be forced to Verdana.
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: 10 March 2006 at 12:16pm
The default style for the RTE textbox is set in the CSS file 'default_style.css' using the class 'RTEtextarea'

As the Web Wiz RTE uses the built in RTE API's of the web browser it has different effects in different browsers.
Back to Top
Unleash_Hell View Drop Down
Newbie
Newbie


Joined: 26 September 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Unleash_Hell Quote  Post ReplyReply Direct Link To This Post Posted: 10 March 2006 at 5:17pm
Originally posted by -boRg- -boRg- wrote:

The default style for the RTE textbox is set in the CSS file 'default_style.css' using the class 'RTEtextarea'

As the Web Wiz RTE uses the built in RTE API's of the web browser it has different effects in different browsers.
'
I know this, but when someone is pasteing from Word, the font is being kept from Word, and this overrides the default style in the RTE textbox. I want something which don't allows to change the font.
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: 11 March 2006 at 2:46pm
To be honest Word is a pain in the arse as the code it produces is awful and very difficult to filter.

As the RTE by it's nature allows HTML code to be used behind the front end to format the text it means that pasting code from World also pastes the HTML/CSS code that Word uses to format the text.

The only solution would be to not use RTE software for people pasteing from Word, or ask if they can paste from Word to Notepad, then to the RTE in order that only plain text is pasted across.
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.