Jump to content

HTML based Text area


aidin

Recommended Posts

hi,

i want to make a HTML based Text area. I mean a text area which when you enter(/n) in it, it puts a <br/> in HTML part, but doesn't show it in text area. or when you drag a picture in it, it puts the <img src="link of the image"/> in HTML part and shows the image in text area. something like post form of this forum. tnx

Link to comment
https://forums.phpfreaks.com/topic/207588-html-based-text-area/
Share on other sites

Use AJAX or something as the base for this then when you want to save it then use php to implement all that jazz. PHP being server side language and this is more of a client side thing, it would take a reload with a server sided scripting language. So that's why you need a client side language (like javascript etc...) to make a drag and drop work. I don't know any off hand that has drag and drop built in but I'm sure there has to be one out there already someplace.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.