Re: programatically put css to text

  •  11-21-2006, 7:34 AM

    Re: programatically put css to text

    Thanks Adam,

    I let my customers select FONT SIZE and BODY BACKGROUND COLOR   and saved them in database. After user log on and will create a new web page in cuteeditor, I'd like to pick up these two style values and apply it to cuteeditor's text. 

    I can't find a attribute of this.   Then I checked forum and find a way to do this.  I created string "<style type=text/css>BODY
    {BACKGROUND-COLOR: #808080;FONT-SIZE: .8em;}</style>"  and added to cuteeditor's text properity. This works in Firefox(1.5.0.8), but doesn't work in IE(6.0).

    So...  I may have raised a same issue. 

    If there is a better way to do this. Please let me know.  Hope this makes it clear!  :)

    Thanks

View Complete Thread