Re: Add a radio button in RichTextArea
rtaf.insertHTML(" "); in that way it works in Chrome and IE but there is still a problem with Firefox. Thank you in advance!!! On Thursday, October 4, 2012 10:54:57 AM UTC+1, jimakos17 wrote: > > final RichTextArea.Formatter rtaf= rta.getFormatter(); > > rtaf.insertHTML(""); > > but the problem is still there. It is not clickable in the Firefox and IE. > In Chrome works fine. > Andrei thank you sooo much for your replies!!! > > > On Wednesday, October 3, 2012 3:51:25 PM UTC+1, Andrei wrote: >> >> Use .insertHTML() method with your formatter. >> >> You need to insert valid HTML. Your HTML does not have quotes around >> values. When you add quotation marks, you need to escape them, of course. >> > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PRVmyrPqeMMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Add a radio button in RichTextArea
final RichTextArea.Formatter rtaf= rta.getFormatter(); rtaf.insertHTML(""); but the problem is still there. It is not clickable in the Firefox and IE. In Chrome works fine. Andrei thank you sooo much for your replies!!! On Wednesday, October 3, 2012 3:51:25 PM UTC+1, Andrei wrote: > > Use .insertHTML() method with your formatter. > > You need to insert valid HTML. Your HTML does not have quotes around > values. When you add quotation marks, you need to escape them, of course. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ogyvYISvmGgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Add a radio button in RichTextArea
Use .insertHTML() method with your formatter. You need to insert valid HTML. Your HTML does not have quotes around values. When you add quotation marks, you need to escape them, of course. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Y869cAEXg7YJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Add a radio button in RichTextArea
Well, I did this if(event.getCharCode()=='*') { rta.setHTML(""); } it creates a radiobutton which is clickable in Chrome, but it isn't in Firefox and IE. rta is my RichTextArea, is declared as: private final RichTextArea rta = new RichTextArea(); I got rta formatters: final BasicFormatter bf = rta.getBasicFormatter(); final ExtendedFormatter ef = rta.getExtendedFormatter(); but neither bf nor ef provide me the setHTML method in order to create a radiobutton. Please help me with this, I have spent a week on that and I haven't done it yet. Thank you in advance!!! On Tuesday, October 2, 2012 3:38:33 PM UTC+1, Andrei wrote: > > You can't insert widgets inside the RTA. You should use an RTA formatter > to insert HTML that renders a radio button. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/O97xIeKP2yQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.