On 3/16/2016 1:20 PM, bit-n...@hotmail.com wrote:
Suppose I have a forum type of a site, where people will be typing in stuff into a textbox which will be stored in a MySQL database on the server. Now, I want people to be able to type in italics and bold and underlined, ie. rich text (and if anyone here has a pointer on how to
do that, that is to say, without actually coding a word processor in Javascript, I'd be much obliged - the new browsers make it easy with
some type of "editor" tag, don't they?). So there'll be a "italics" button, a "bold" button, etc. just like any word processor has, and
when someone types in bold, the text will*appear in bold* inside the textbox. How is this pulled off? And, more importantly, the <b> tags
and <i> tags will be there inside, together with the text - should I
store the text WITH the "<b>" stuff*INSIDE* the MySQL db? That seems
kind of messy..... is there a cleaner way?
Thanks.A few online application that I know of use TinyMCE for marking up text
to be stored. I Have never tried to incorporate it into an application myself, but I might do what you are looking for.
https://www.tinymce.com/
I think that this is off topic for this group.
Dave Pyles
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 349 |
Nodes: | 16 (0 / 16) |
Uptime: | 151:55:07 |
Calls: | 7,615 |
Calls today: | 3 |
Files: | 12,792 |
Messages: | 5,685,531 |
Posted today: | 2 |