People pasteing from Word into my app produced a crazy amount of junk
formating I wanted to get rid of ;)
I managed to deal (more or less) with it in normal TextBox's, but not
RTF.
Btw, if you run into an Opera compatibility issue with OnPaste, dont
worry about it. The browser doesnt seem to support it.....but it
strips away formating data itself anyway!
On Oct 31, 3:52 pm, Brandon Donnelson <branflake2...@gmail.com> wrote:
> I setup the source to look deeper and I'm looking at the source to see how
> the build it. I'm looking at two approaches to get to the iframe, one
> try accessing it through JSNI, find the iframe in the DOM..., 2, find how
> the source is passing events through the iframe and replicate that with
> onpaste. 3. keep trying... :) My goal is to intercept the onPaste event any
> way I can in the iframe.
>
> One thing that still puzzles me is, how do they get the cursor to blink in
> that iframe/(RichTextArea Element). I don't see where they attach any input
> elements. The textarea element they use looks like a container for
> transport only. Is there a trick to blink the cursor in innerHTML? I
> inspect the element and its either not picking up something b/c of focus or
> I'm missing the boat still.
>
> Either way, I intend to figure out a way to paste word document (text) with
> no formatting into the RichTextArea and which means I have to figure out
> how to catch OnPaste Events and access ClipBoardData API(s) in the browser.
>
> I'll be glad to share the results after I figure it out. Thanks for the
> reply.
>
> Brandon Donnelsonhttp://gwt-examples.googlecode.com
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment