Hello,

I've got a problem with a RichTextBox. As soon as I try to use
functions of the BasicFormatter, I get errors. My goal is to
set the font-name of a set text:

configTextArea.setText(config);
configTextArea.getBasicFormatter().selectAll();
configTextArea.getBasicFormatter().setFontName("Courier");

During runtime e.g. in hosted mode I get the following exception:
[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: JavaScript Error exception: 
Unbekannter Fehler.
        at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:481)
        at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:270)
        at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:137)
        at 
com.google.gwt.user.client.ui.impl.RichTextAreaImplStandard.setFocus(RichTextAreaImplStandard.java:146)
        at 
com.google.gwt.user.client.ui.impl.RichTextAreaImplStandard.execCommand(RichTextAreaImplStandard.java:322)
        at 
com.google.gwt.user.client.ui.impl.RichTextAreaImplStandard.selectAll(RichTextAreaImplStandard.java:139)

(Unbekannter Fehler) means "unknown error" in english.

Maybe my way to change the font of the text in the area is
wrong, so a completely different solution would help me too.

Another question: I'm using RichTextArea, because this allows
users of Firefox to enter TAB. This doesn't work for IE (others
I don't know in lack of an installation). Is there another way
to allow people enter text including TAB without letting the
browser change the focused input-element?


Regards, Lothar

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to