Hi Fred,

I was struggling with the same issue of setting the selected DOM range to an empty element. I believe there's a bug filed on it.

<http://bugs.webkit.org/show_bug.cgi?id=10883>
<http://bugs.webkit.org/show_bug.cgi?id=10881>

What I've been toying with is adding zero-width spaces to elements and then cleaning up after those characters or the elements themselves if the author doesn't add content to the element.

Its a pretty serious bug however for any editor trying to do real semantic editing.

Take care,
Rob

On Sep 21, 2007, at 6:53 AM, Frederico Caldeira Knabben wrote:

Hi,

It is a pleasure to say that FCKeditor is almost completely working with Safari. There are still some issues, but we'll be able to finally declare official support for Safari 3. Thanks for the hard work at WebKit's side.

Now, back to the point...

For the few big issues we are having with Safari, I'm going almost crazy, trying to find a way to place the caret inside an empty element for editing.
To understand the problem, just try the following page:

http://www.fredck.com/bugs/safari/collapsed_select_test.html

This page works well with Firefox 2 and Opera 9.5 (minor issues with this
one).

Before opening a bug report for it, I'm coming to the mailing list for a
desperate call for help.

Does anyone know any weird hack to make the magic happen with Safari too?
I've tried hundreds of combinations, but none worked correctly.

Thanks for any help in this sense.

Fred

Frederico Caldeira Knabben
Project Manager, FCKeditor
----
http://www.fckeditor.net



_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-dev

_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to