473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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(textarea) 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|link)s? really appreciate your time. : - )

Have a nice weekend,
lihao(XC)
Feb 9 '08 #1
1 1833
li*******@gmail.com wrote on 09 feb 2008 in comp.lang.javascript:
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(textarea) 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|link)s? really appreciate your time. : - )
A quick googling:

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

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 9 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Joe Christl | last post by:
I was wondering - is there some part of sql that can display text? I wanted to add simple instruictions to the beginning of an sql script so the user understands what they're entering into the...
2
by: bob | last post by:
Does anyone know if it is possible to display text vertically in HTML? Basically, I want normal text rotated 90 degrees.
20
by: John Bailo | last post by:
CSS shills Bill Gate and Skieve Balmy make comparisons of quality between CSS and GLOSS (Gnu Linux Open Source Software ). Ok, let's test that theory. I work on both a FedoraRC1 and w2k machine....
1
by: iggie | last post by:
Hello, everyone. How can I display text from another form that currently has the focus. I'm doing a search in sql 2000, to dot it. I call a search form and query my criteria, when it founds the...
8
by: Dave Moore | last post by:
I realize this is a somewhat platform specific question, but I think it is still of general enough interest to ask it here ... if I am wrong I guess I will find out 8*). As we all know, DOS uses...
3
by: deko | last post by:
I store hyperlinks as text in a table like this: Invoice11-21-2003.pdf#file://P:\Finance\PrefVendors\Receipts\Invoice11-21-20 03.pdf I need to run a report that lists the documents - or...
3
by: Troy Wilson | last post by:
Is there an existing control for Visual Basic that allows me to display text in that control, but also lets me append text to it. The application I have in mind for this control is something like...
0
by: yalanue | last post by:
I want to create a combobox with its displaymember populated from a datatable. But once I get it run, the default display member in the combobox is always the first row of the displaymember list....
3
by: WebNewbie | last post by:
Hi, please help I've been wrestling with this for a very long time and its not working. I'm trying to display text files from a database when someone selects one or more list items of my listbox. The...
5
by: austincollins | last post by:
I have been searching for hours to find a solution to display text rotated at 90 degrees in firefox, and could not find one. css3 and IE has the css command "writing-mode: tb-rl;" but this does not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.