php - How to format text in a textarea for blognews article - Stack Overflow

I've designed a basic blog app using php. For the entry, I've used a html form and used <

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.

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.

Share Improve this question asked Jun 25, 2013 at 8:02 wadeywadey 933 silver badges10 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 4

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

  • TinyMCE
  • NicEdit
  • among many others...

Here you have a few ones:

  • 10 best WYSIWYG Text and HTML Editors for Your Next Project
  • 15 Really Useful Web-based HTML Editors
  • Google: Javascript HTML WYSIWYG

Good luck!

You can use ckeditor or tiny mce editor

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745616577a4636273.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信