问题
What are the options for something that will let users make text bold/italic/underline/etc as they are writing in a textarea and work in all browsers?
回答1:
Give a look to FKCEditor, I always recommend it...
回答2:
I always liked TinyMCE http://tinymce.moxiecode.com/
回答3:
I favor the Rich Text Editor in the YUI
回答4:
I've used InnovaStudio WYSIWYG. Pretty extensible and cheap.
回答5:
FCKEditor is a popular choice, although it's incredibly bloated. There's a nice simple example in jQuery jQuery Plugins
I wrote my own in the end as I wanted to customise the editor quite a lot. It's not too difficult to do and typically involves popping an iframe on the page, setting the contenteditable to be true and then using a simple javascript command to update the html of the iframe.
来源:https://stackoverflow.com/questions/805639/javascript-wysiwyg-html-editors