Help - Search - Members - Calendar
Full Version: FORMATTING TOOLS FOR HTML TEXTAREA TAG
HTMLHelp Forums > Programming > Client-side Scripting
shankar from vizag
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
SHANKARClick to view attachment
Christian J
See https://en.wikipedia.org/wiki/Bbcode
pandy
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?
Christian J
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.


pandy
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.
shankar from vizag
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
Christian J
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.
pandy
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.