First of all, thanks for taking the time to reply to my post.
I did looked over your code before posting here. As I said, I'm
interested in a full implementation of the W3C Range specification, or
something as flexible. I think your current selection support is
limited. For instance, in the following method:
//
rocket.selection.client.support.SelectionSupport#getStart(Selection)
public SelectionEndPoint getStart(final Selection selection) {
final SelectionEndPoint start = new SelectionEndPoint();
start.setTextNode((Text) JavaScript.getObject(selection,
Constants.ANCHOR_NODE).cast());
start.setOffset(JavaScript.getInteger(selection,
Constants.ANCHOR_OFFSET));
return start;
}
you expect the anchor node to be a text node, but AFAIK this is not
always the case (in Firefox at least). That's why I asked if you plan
on extending the current selection support. To do this for Firefox is
easy. The hard part is doing it for IE. Maybe that's why you kept the
API simple; IE seems to support only text ranges, hmmm..
Regards,
Marius
On Oct 7, 12:42 pm, mP <miroslav.poko...@gmail.com> wrote:
> IE selection should work - all the code is there.. try the demo.
>
> On 7 Oct, 18:43, mflorea <zmeuld...@gmail.com> wrote:
>
> > Hi there,
>
> > Do you plan extending the current Selection support? I'm interested in
> > a full implementation of the W3C Range specification. Wrapping the
> > Mozilla Range from JavaScript in GWT is easy. The difficult part is to
> > implement the specification using InternetExplorer's own TextRange
> > API. Do you work or plan to work on this in the near future?
>
> > Thanks,
> > Marius
On Oct 8, 12:21 am, "Miroslav Pokorny" <miroslav.poko...@gmail.com>
wrote:
> On Wed, Oct 8, 2008 at 7:14 AM, mflorea <zmeuld...@gmail.com> wrote:I need the selection to write (yet another) WYSIWYG editor on top of
>
> > First of all, thanks for taking the time to reply to my post.
>
> > I did looked over your code before posting here. As I said, I'm
> > interested in a full implementation of the W3C Range specification, or
> > something as flexible. I think your current selection support is
> > limited. For instance, in the following method:
>
> Most of the w3c range stuff isnt exactly needed - what stuff do you need
> that is missing ? Like you mention below IE doesnt even attempt to use w3c
> iinterfaces but has its own nasty ambomination.
GWT. It will replace eventually the current WYSIWYG editor in XWiki,
namely TinyMCE.
Sent from my iPhone
Sent from my iPhone
On 10/10/2008, at 1:17 AM, mflorea <zmeu...@gmail.com> wrote: