Computing.Net > Forums > Web Development > Make textarea accept pasted HTML

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Make textarea accept pasted HTML

Reply to Message Icon

Name: Laler
Date: May 30, 2008 at 09:44:56 Pacific
OS: Windoze
CPU/Ram: 1.8 Gigz
Product: ?
Comment:

Hello,

I'm planning to use TinyMCE. But since what I actually need is just a textarea that accept pasted HTML that when submitted will submits the HTML source (as in TinyMCE), without the TinyMCE toolbar and etc stuff in TinyMCE package, I'm wondering if it's too complicated or not to create the JavaScripts to achieve this.

Any samples? Clues? Thank you in advance.

>.<

---
Fubar



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: May 30, 2008 at 13:31:30 Pacific
Reply:

I'm not understanding your problem. You can simply paste HTML code into a textarea without any modifications and it will POST just fine. It is what happens on the back-end that matters (i.e. the processing page). For example in this forum some HTML tags are interpreted in posts and others are not. Those were predetermined decisions by this forum's owner that were specifically written into the code.

Michael J


0

Response Number 2
Name: Laler
Date: May 31, 2008 at 00:10:55 Pacific
Reply:

I'm so sorry for not being clear.

Let's see this TinyMCE textarea.

You can ctrl-a then ctrl-c on this page (this computing.net page), and ctrl-v it there on the TinyMCE textarea...

On submit, complete HTMLs (including table tag, title attribute, class, id) will be passed. This can't happen on normal textarea, no?

TinyMCE does the job, but I don't need their toolbar (which can be hidden but with problem which probably there's a workaround, and so on.).

So I'm wondering if having a textarea to be able to understand pasted HTML and also POST it, is a complicated/complex JavaScript or not?


---
Fubar


0

Response Number 3
Name: Laler
Date: May 31, 2008 at 10:43:52 Pacific
Reply:

I'll go with this solution for now, thanks for raeding :)

---
Fubar


0

Response Number 4
Name: Laler
Date: June 3, 2008 at 03:24:56 Pacific
Reply:

Oops...

I mean this:

http://tinymce.moxiecode.com/punbb/...

might be useful for someone.

---
Fubar


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Make textarea accept pasted HTML

making my own template n cs3 www.computing.net/answers/webdevel/making-my-own-template-n-cs3/3968.html

Make textarea appear www.computing.net/answers/webdevel/make-textarea-appear/4171.html

how do I e-mail HTML documents? www.computing.net/answers/webdevel/how-do-i-email-html-documents/2829.html