Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - customize buttom=code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Lockedcustomize buttom=code

 Post Reply Post Reply
Author
robyso View Drop Down
Newbie
Newbie


Joined: 17 March 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote robyso Quote  Post ReplyReply Direct Link To This Post Topic: customize buttom=code
    Posted: 18 March 2005 at 10:18am

Hi, which file must I customize if I want to cange the code that generates the RTE

 
EX.: if I press enter the RTE generates <div></div> instead of I want that RTE generate <br /><br />
 
How can I do this?
 
 
Thanks,
Roberto.
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: 18 March 2005 at 10:28am
This depends what browser you are using.

Mozilla and Firefox use <br> by default.

IE by default places in a <p> tag which creates a double line spacing, to prevent this, as most users don't like it, when you press 'Enter' in IE this is intercepted in the Web Wiz RTE and a <div> tag is put in instead so you get single line spacing.

This can be turned off in the setup file so that IE puts in it's default <p> tag, then if you want a <br> tag you can press 'SHIFT->ENTER'

The reason why the 'Enter' key is intercepted and a <div> tag placed in is that I tried to intercept and place in a <br> tag but this coursed allot of problems with formatting when you have tables, orders lists, images, etc.

To turn off this in IE edit the file RTE_configuration/RTE_setup.asp and edit this following line:-

Const blnNoIEdblLine = true    'Prevent IE's standard double line spacing when the 'ENTER' key is pressed
Back to Top
robyso View Drop Down
Newbie
Newbie


Joined: 17 March 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote robyso Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2005 at 6:29pm
OK THANKS.
 
But my question isn't only about the <br>, but I want to change every bottom, for example for the font I want that create a tag <span> with the style of the font, there a list of all these settings?
 
 
Thanks,
Roberto.
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.