Re: WebKit for WYSIWYG HTML editor?
Re: WebKit for WYSIWYG HTML editor?
- Subject: Re: WebKit for WYSIWYG HTML editor?
- From: Scott Anguish <email@hidden>
- Date: Mon, 20 Oct 2003 00:31:11 -0400
On Oct 19, 2003, at 10:40 PM, Craig Mattocks wrote:
Hi,
I am trying to "port" (replicate) a Windoze app to Cocoa and I need
some advice on its future architecture.
Essentially a WYSIWYG HTML editor, the app lets a user edit a web page
dynamically as it is rendered. You don't see the HTML code -- you
highlight elements in the web page, change their size/color/etc with
toolbar buttons -- when the page is saved, the file contains HTML
code.
How could I (should I?) use WebKit to do this in Cocoa? Hide the HTML
code and reload the file:/// URL after every mouse/key up event? What
would the best approach? Any good examples available?
I believe at this point in time, this would be significantly more
trouble than it may appear.
Aside from the fact that WebKit has no concept of editing, a
selection, or an insertion point, it also doesn't expose the parsed
HTML tree of it's contents. Being able to get the HTML that is the
current selection, along with the start, length in the HTML view, would
be key to accomplishing this.
You could look at WebCore, but it would still be difficult.
As an aside.. I'd love to see an XML editor on OS X... with both a
tree, and a stylized CSS view of the output.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.