473,378 Members | 1,333 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,378 software developers and data experts.

How to bring richtext into textarea?

I think you all know those richtext textboxes in forums etc.

As example:

http://www.dynamicdrive.com/dynamici...itor/index.htm
http://freetextbox.com/demos/

etc.

Well, my question is, how to make them? I don't ask for a complete
tutorial for a full blown control here, I just need a little tip. My
problem especialy: Where is the textarea tag in this rich text boxes?
Obviously, you type text into a textarea, but, if you rightclick into
it, you see that in reality it's a different page. (Usualy a blank
html) How does that work? It's textarea and that blank page at the
same time?

Is that an onclick event, onclick on textarea, then it transforms... ?

These are my first tryings in javascript, my job is C++ application
programming, so I can program, but I never had the time and motivation
to get into javascript, until recently. Please don't flame me if this
question might be a bit stupid for you.

Apr 28 '07 #1
3 2350
On Apr 27, 5:09 pm, PSiegm...@mail.nu wrote:
I think you all know those richtext textboxes in forums etc.
There are not any textareas involved in those rich-text editors (rte).

Programming a complete rte would be a big job. If you want to learn
the basic workings maybe an example I built to learn the workings will
help <URL: http://peter.michaux.ca/temp/rte/example.htmlDon't take
this example as the greatest cross-browser whatever. I just wanted to
understand a little.

If you just want an rte, the most popular open source rte works in
recent IE, FF and Opera releases. <URL: http://www.fckeditor.net/>

If you are new to JavaScript...<URL: http://jibbering.com/faq/#FAQ3_1>

Peter

Apr 28 '07 #2
On Apr 28, 2:38 am, Peter Michaux <petermich...@gmail.comwrote:
On Apr 27, 5:09 pm, PSiegm...@mail.nu wrote:
I think you all know those richtext textboxes in forums etc.

There are not any textareas involved in those rich-text editors (rte).

Programming a complete rte would be a big job. If you want to learn
the basic workings maybe an example I built to learn the workings will
help <URL:http://peter.michaux.ca/temp/rte/example.htmlDon't take
this example as the greatest cross-browser whatever. I just wanted to
understand a little.

If you just want an rte, the most popular open source rte works in
recent IE, FF and Opera releases. <URL:http://www.fckeditor.net/>

If you are new to JavaScript...<URL:http://jibbering.com/faq/#FAQ3_1>

Peter
Thanks for your example, I will look into it.

Apr 28 '07 #3
On Apr 27, 6:09 pm, PSiegm...@mail.nu wrote:
I think you all know those richtext textboxes in forums etc.
Well, my question is, how to make them? I don't ask for a complete
tutorial for a full blown control here, I just need a little tip. My
problem especialy: Where is the textarea tag in this rich text boxes?

It's a document with designMode - on :

Rich-Text Editing in Mozilla:
http://developer.mozilla.org/en/docs...ing_in_Mozilla

Converting an app using document.designMode from IE to Mozilla:
http://www.mozilla.org/editor/ie2midas.html
Apr 28 '07 #4

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

Similar topics

1
by: Pete Griffint | last post by:
Howdy! I want to get the following in a Richtext control: Paragraph 1.... Paragraph 2... Obviously I want to do something like rtb.SelectedText="Paragraph 1...";...
0
by: Lukas Thanei | last post by:
Hi, Im trying for 2 days to solve a problem but now Im on a point where all ideas exhausted. Im writing a software to print out some cards containing richtext and images. To print the...
2
by: Du | last post by:
I like richtext textbox and its shortcut, but I don't need the richtext format. How do I tell the richtext text box to strips all the format and convert everything to plain text? Thanks
4
by: JC - home | last post by:
Hello.. I've been having some problems for a little while with this which I was sure I would beat...hmmm. Anyway, I have a form with two rich textboxes. One at the top which is to display a...
2
by: Gary Shell | last post by:
I have a very ODD situation. I have a RichTextBox and a button. In the button click event I have the following: me.richtextbox1.SelectedText="test" Assuming I start with "aaaabbbbcccc" in...
3
by: rigamonk | last post by:
Is there a way to save richtext from a richtextbox into an access DB using vb.net? thanks patrick
3
by: tlyczko | last post by:
I have Stephen Lebans' RichText control on a subform, which is bound to a memo field. The only editable control on this subform is the rich text control for the memo field. When the main form...
0
by: giddy | last post by:
hi , i made a little RtfEncapsulator. Its a class thats called RichText , it has an RtfElementCollection which takes any class that exposes the IRtfElement interface. I managed to make an...
5
by: Jahren | last post by:
Hi! i'm new here. this place looks nice so i would like to try my luck here! I've a question : How can I insert multiline richtext into MSACCESS database? at first I thought I could store it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.