How to display 'style'ed text in a textaea or... ???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lihao0129@gmail.com

    #1

    How to display 'style'ed text in a textaea or... ???

    The scenario is a RTF(Rich Text Format) editor where I can input text
    and meanwhile display 'style'd text or multimedia( i.e bold fonts,
    pictures, movies ) in the same box...

    I am currently using some HTML tags in textarea and make a "preview"
    and a "refresh" button to sync between the writepad(textar ea) and the
    preview zone(div). But somehow the HTML tags in textarea look messy...
    Since text in 'textarea' can not display HTML effects(maybe I was
    wrong, please correct me), so I am actually trying to find a way to
    both input text and display styles in one box..

    Can someone shed some light to me on this problem or point me to some
    (concept|term|l ink)s? really appreciate your time. : - )

    Have a nice weekend,
    lihao(XC)
  • Evertjan.

    #2
    Re: How to display 'style'ed text in a textaea or... ???

    lihao0129@gmail .com wrote on 09 feb 2008 in comp.lang.javas cript:
    The scenario is a RTF(Rich Text Format) editor where I can input text
    and meanwhile display 'style'd text or multimedia( i.e bold fonts,
    pictures, movies ) in the same box...
    >
    I am currently using some HTML tags in textarea and make a "preview"
    and a "refresh" button to sync between the writepad(textar ea) and the
    preview zone(div). But somehow the HTML tags in textarea look messy...
    Since text in 'textarea' can not display HTML effects(maybe I was
    wrong, please correct me), so I am actually trying to find a way to
    both input text and display styles in one box..
    >
    Can someone shed some light to me on this problem or point me to some
    (concept|term|l ink)s? really appreciate your time. : - )
    >
    A quick googling:

    How to Create a WYSIWYG Rich Text Editor in JavaScript
    <http://www.webreferenc e.com/programming/javascript/gr/column11/index.html>

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    Working...