|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 ?
|
|
#2
|
|||
|
|||
|
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/ |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
yeah its an awesome feature
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > HTML editor and style sheets ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|