开发者

Rich Text Editor [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_开发知识库 Closed 11 years ago.

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜