Rich Text Editor [closed]
I'd like to build a rich text editor for a web site. How would I go about this? I've heard of iframe use for such a thing. Also contentEditable set to true plays a role. Could you tell me what you know about implementing a WYSIWYG editor? It would be nice...
Consider saving yourself a lotta headache and look at TinyMCE, FCKEditor/CKEditor, and CuteEditor (commercial). My personal favorite at the moment is CKEditor - its evolved very nicely and is pretty easy to use now
The recently released Google Closure Library has capability to build rich text editors as well tho I have not yet any experience with that one - dunno its limitations if any
If you don't want to reinvent the wheel then you can look for some editors like
CKEditor
TinyMCE
which comes with a lot of features.
Please try some open source Rich text editor that will help you
One I know and used is openwebware
About iframe I think every Rich text editor uses iframe. The editor above is also using iframe.
About contentEditable This is used to make a element editable in browser it self. You can find this in the editor mentioned above.
Do try this editor will help you.
I built one from scratch using the Mozilla MIDAS specification. Keep in mind that this won't work well with IE (at least mine doesn't).
Specification - http://www.mozilla.org/editor/midas-spec.html
Demo - http://www.mozilla.org/editor/midasdemo/
I use the demo source (which it pretty clean) to construct my own editor for my CMS.
Good Luck!!!!!
If you really want to build your own then there are a few good tutorials around.
Otherwise, here are another couple of good third-party editors that haven't been mentioned yet:
- YUI Rich Text Editor
- RadEditor
精彩评论