Print Page | Close Window

Keeping formatting rules

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=12908
Printed Date: 28 March 2026 at 4:08am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Keeping formatting rules
Posted By: weppos
Subject: Keeping formatting rules
Date Posted: 09 December 2004 at 6:02pm
I'm testing the new version of RTE in a site to create the script archive.

I usually create the code with particular formatting rules, such as tabulations, new lines and spaces, to help code reading.

BTW, when I insert the code into the RTE (using the HTML view) switching to Normal mode it removes all formatting rules writing all code without any new line or tabulation.

Is there a way (if you have no time to do that but you know there's a way please just let me know some info to mod it ) to kept formatting rules into the RTE?



Replies:
Posted By: WebWiz-Bruce
Date Posted: 10 December 2004 at 4:21am
The RTE uses the built in RTE features of the web browser. It is this that will alter your code.

Different browsers have implemented RTE features differently, and I know IE is bad and changing the source code.

If your are using IE, try the same with Mozilla Firebird, if you are using Mozilla try using IE.

http://www.mozilla.org/products/firefox/ - http://www.mozilla.org/products/firefox/


-------------
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: weppos
Date Posted: 10 December 2004 at 5:03am
I'm using Firefox since it was firebird.
I know you use Firefox too. Does you are able to keep the formatting rules with it?

I will test it with a different browser.


Posted By: WebWiz-Bruce
Date Posted: 10 December 2004 at 7:30am
The browsers use there own rules for RTE's, the only way to know exactly how and in what way they change things would probably mean doing a bit of research on the browsers web sites into how there built in RTE features work.

-------------
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: weppos
Date Posted: 10 December 2004 at 7:44am
Ok, I'll do it.
I will ask some information on italian or international mozilla forums and I'll do some searches.

The last question.
In particular, what have I to search? I think something about how the browser read and execute Javascript commands. Isn't it?

Sorry about the question, but I'm not really informed with javascript scripting language or, better, I really hate it.


Posted By: WebWiz-Bruce
Date Posted: 10 December 2004 at 11:21am
In this case javascript has very little if nothing to do with this, the javascript is only used to fire events like telling the built in RTE features to start using bold, etc.

The RTE features in Mozilla use their Midas API.

What you do is tell a web page to enable design mode to make that web page editable, this then uses the Midas API to make the page editable.

It is this Midas API (part of the Mozilla browser) that does the formatting etc. when the page is in design mode.

I would start by looking into and asking questions about the Mozilla Midas API.


-------------
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: WebWiz-Bruce
Date Posted: 10 December 2004 at 11:23am
Sorry I forgot here are some useful links to the Mozilla site on their Midas API and a simple demo:-

http://www.mozilla.org/editor/midas-spec.html - http://www.mozilla.org/editor/midas-spec.html

http://www.mozilla.org/editor/midasdemo/ - http://www.mozilla.org/editor/midasdemo/


-------------
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