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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old August 1st, 2002, 06:10 PM
cde cde is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: UK
Posts: 7 cde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
HTML editor and style sheets ?

I worked with the html editor code last year on a project for company in scotland, and came up with a crude method of applying style sheets through the editor. has anyone else done that or similar yet with a nice feature that can load up an external style sheet ?

Reply With Quote
  #2  
Old August 1st, 2002, 06:24 PM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
you can appply style sheet to a iframe using

iView.document.createStylesheet('stylesheet.css')

command

hope this helps
__________________
Regards,

James Yang
.NET Developer / Network Engineer
MCSE, MCDBA, MCSA, CCNA

http://www.yellowpin.com/
http://www.opentechsupport.com/

Reply With Quote
  #3  
Old August 2nd, 2002, 03:37 AM
cde cde is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: UK
Posts: 7 cde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cheers, I'd managed to apply a style sheet itself to the editor window.

What I was on about was applying stylesheet classes to elements such as the font tag or even applying the div tag through the editor.

When I hacked the code, I had a drop down box with the stylesheet reference name listed and then as long as a block of txt was selected the stylesheet would be applied to the parent paragraph tag.

But I am more interested in loading up the stylesheet and parsing it for the classnames before using the data to fill the select box with it's classes, and passing these through the the editing frame

Reply With Quote
  #4  
Old August 2nd, 2002, 02:03 PM
dgibson dgibson is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Urbana, MD, USA
Posts: 66 dgibson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
James - thanks, I had not seen how to do that before and hadn't found the createStyleSheet method. (note the second S is capitalized tho). Pretty cool - now I can see how it will really look in the site while editing.

Reply With Quote
  #5  
Old August 2nd, 2002, 10:14 PM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
yeah its an awesome feature

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > HTML editor and style sheets ?


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 1 hosted by Hostway