0

Hi,
I need to make my textarea html compatible... just like a visual editor, where i can embed html tags like <img>, <a href>....

is there any way to do this with html coding ???

5
Contributors
12
Replies
28
Views
6 Years
Discussion Span
Last Post by twiss
1

Not sure what you are asking, can you clarify a bit more? Any text file saved as filename.html should do the trick?

Votes + Comments
polite, I wish I could be polite, kudos
0

Hi Kraai,
thanks for the response and sorry about my english...
Well i just want to make my textarea html compatible...
Like if i am using <b>My Name</b>.
It doesn't make my name Bold... rather than it display it as it is....
HTML is ignored by textbox...

0

So, can you begin by telling us what text box you are refering to? Is it like a text box on an existing website like the one I am typing in now? If so, give url to the site, or paste your code here.

0

In a text box like that the contents are interpreted as text only; HTML markup is ignored. Depending on the type of input form and coding like php or other, you can allow html in the text box by coding it like that, but if you are going to use this on line, it is not reccommended at all, as it gives hackers a backdoor to insert malicious code into your datanase.

0

there is a plugin, bbcode, that you may be able to install and use, it is the one used on this site that allows bold underline color and the [code=language] syntax highlighting [/code] that makes the site easier to read

Edited by almostbob: n/a

0

I think that you want is a javascript wysiwyg html editor, such as TinyMCE. (You can also make it produce BBCode, if you want, instead of HTML).

Edited by twiss: n/a

0

bbcode is better than allowing html, an interestingly crafted entry, and your site goes fubar, uscwap
the plugin used to do it, comes to which is easier to install and use

* f_cked up beyond all recognition
* up sh_t creek without a paddle

Edited by almostbob: n/a

0

TinyMCE is not the same as allowing HTML. You can't post anything "interesting" with it.

0

geez bloke I was agreeing with you, well at least I intended to be agreeing with you,

the plugin used to do it, comes to which is easier to install and use

Edited by almostbob: n/a

-1

Don't use a textarea tag to apply use formatting, use a div tag with contenteditable in it.
e.g

<div contenteditable style="background:#98bf21;height:700px;width:100%;position:relative">
<b> Bold </b>
</div>

Edited by thing789: n/a

0

Just in time not to have seen the "3 months old" notice :p
Spuit elf, we call it in dutch.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.