Re: RichTextArea losing focus on color selection

2008-10-17 Thread rudolf michael
Hello Sumit, Thx for your reply, actually i only had this bug over IE. it is working over FF. the workaround was using JNSI which i really try to avoid when building my modules. public native JavaScriptObject getRange(Element element)/*-{ if(element.contentWindow.document.selection){ r

Re: RichTextArea losing focus on color selection

2008-10-16 Thread Sumit Chandel
Hi ruds, Here's a suggestion that could work. I haven't tried it out myself, but it could be worth a try. The first thing you would need to do is prevent the loss of focus from the selected text in your RichTextArea when the user clicks on a cell in the colour palette. You might be able to prevent

RichTextArea losing focus on color selection

2008-10-14 Thread ruds
Hello there, i have the following situation: a RichtextArea with a toolbar to style the text. within the toolbar there is a button for a color palette which is a popup with a grid in it. i have done an Event listener for the toolbar items so to keep the RichtextArea focused all the time when pla