Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ FORMATTING TOOLS FOR HTML TEXTAREA TAG

Posted by: shankar from vizag Oct 6 2019, 06:32 AM

Greetings

Can I place formatting buttons like BOLD, ITALIC, CENTER, INSERT-TABLE like buttons for textarea box in html Similar to the attachment. So that user can edit the text entered in textarea according to the requirement.

Can anyone suggest and guide me in this regard.

regards
SHANKARAttached Image

Posted by: Christian J Oct 6 2019, 02:00 PM

See https://en.wikipedia.org/wiki/Bbcode

Posted by: pandy Oct 6 2019, 04:52 PM

Yeah, but a server side program that can parse the bbCode is also needed.

The UI is easy enough. I've extended the toolbar for a forum only using simple JS. Basically you could borrow that part from an existing forum or similar.

What do you want this for? A forum, blog comments or what? Any chance there already is a bbCode parser in use?

Posted by: Christian J Oct 6 2019, 05:04 PM

QUOTE(pandy @ Oct 6 2019, 11:52 PM) *

Yeah, but a server side program that can parse the bbCode is also needed.

That's the easiy part actually, all you need is a simple character replace between each BBCode tag and corresponding HTML.



Posted by: pandy Oct 6 2019, 09:12 PM

Yes, but you need to do it. And modding a complex program like a forum isn't the easiest if you aren't a programmer.

Posted by: shankar from vizag Oct 18 2019, 11:10 PM

QUOTE(pandy @ Oct 7 2019, 07:42 AM) *

Yes, but you need to do it. And modding a complex program like a forum isn't the easiest if you aren't a programmer.


Sorry for the delayed reply.

Actually I need it for an off-line usage.

I need an interface just like an MS-word with limited options, like center, justification, underline, fontcolor, bullets, bold and font size. This is for purely private usage between a group of people under LAN (intranet).

I welcome your valuable suggestions please.

regards

SHANKAR SB

Posted by: Christian J Oct 19 2019, 05:14 AM

If you're submitting the form to an intranet server, it works the same as online. The formatting BBcode is just part of the ordinary form submission.

Posted by: pandy Oct 19 2019, 05:31 AM

And what I said applies also. Something magic doesn't happen with the bbCode if your program doesn't understand it and make it happen.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)