Print Page | Close Window

customize buttom=code

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=14303
Printed Date: 28 March 2026 at 2:20pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: customize buttom=code
Posted By: robyso
Subject: customize buttom=code
Date 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.



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


-------------
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: robyso
Date 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.



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