问题
I am looking for a Cocoa HTML editor control. Do you know if something like this already exists?
回答1:
Here's CKEditor4ObjC, an open-source Cocoa HTML editor using CKEditor and WebView
that I just created.
回答2:
The only thing that I've seen that relates to what you're looking for is this simple example of how to use the TinyMCE JavaScript-based HTML editor in a Cocoa WebView
.
Alternatively, I would take a look at this similar question and the corresponding link to helpful information that resides within it.
回答3:
It's not hard to use document.execCommand(...)
either, because WebKit is pretty compatible with it.
来源:https://stackoverflow.com/questions/6747070/html-editor-cocoa-control