Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 20th, 2002, 08:41 PM
dolithe dolithe is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: New Zealand
Posts: 3 dolithe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
WYSIWYG HTML Editor

I have been trying to implement the editor that was presented in a turorial on this site. I am having trouble with the following section of code under IE5 (works under 6)

// Setup iframe for editing
iView.document.designMode = 'On';
// Toggle view flag
viewBasic = 2;
// Show the table with the editor
document.all.tblEditor.style.display = 'inline';
// Hide the table with the text area
document.all.tblBasic.style.display = 'none';
// *****************
// Set the content of the iframe to the body of the textarea
iView.document.body.innerHTML = document.all._bodyText.value;

If i insert and alert function into the code before the line of *** then it works fine too..... It's all a bit confusing? I guess it has something to do with setting design mode (does this take some time to load?)

Anyway, appreciate any helpful advice.

Reply With Quote
  #2  
Old August 20th, 2002, 09:54 PM
edd_m edd_m is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 3 edd_m User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I.E 5 is a pain.

Try using an onLoad on the iFrame to call a function that sets:

iView.document.designMode = 'On';

Reply With Quote
  #3  
Old August 21st, 2002, 12:28 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
There are several bugs in IE5 that will basically bugger up the editor, you should use a min of IE 5.5 (patched)

Reply With Quote
  #4  
Old August 21st, 2002, 01:19 AM
dolithe dolithe is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: New Zealand
Posts: 3 dolithe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks....

Well, that's has given me a legitimate reason to stop getting frustrated with it. Thanks

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > WYSIWYG HTML Editor


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT