Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Keeping formatting rules
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedKeeping formatting rules

 Post Reply Post Reply
Author
weppos View Drop Down
Groupie
Groupie


Joined: 23 May 2003
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote weppos Quote  Post ReplyReply Direct Link To This Post Topic: Keeping formatting rules
    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?
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 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/
Back to Top
weppos View Drop Down
Groupie
Groupie


Joined: 23 May 2003
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote weppos Quote  Post ReplyReply Direct Link To This Post 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.
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 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.
Back to Top
weppos View Drop Down
Groupie
Groupie


Joined: 23 May 2003
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote weppos Quote  Post ReplyReply Direct Link To This Post 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.
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 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.
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 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/midasdemo/
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.