简体   繁体   中英

How to format text in a textarea for blog/news article

I've designed a basic blog app using php. For the entry, I've used a html form and used < textarea > for the main article of the blog. All works fine. The data is saved to a database and called up by other pages.

However, I'd like to be able to add formatting to this so other users who don't know to wrap tags around things can also post an entry. The type of thing I'm after is pretty much EXACTLY what is used here to post replies etc.

I'm guessing this would be either Javascript or php, but I don't have a clue how to go about it.

Probably you are looking for a web based Javascript HTML WYSIWYG editor , like

Here you have a few ones:

Good luck!

您可以使用ckeditor或微小的mce编辑器

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM