I am able to get RichTextArea working with no tool bars (not to hard).
The showcase source indicates the following line:
RichTextToolbar toolbar = new RichTextToolbar(taskRichTextArea);
I don't see that RichTextToolbar can be imported via eclipse like RichText Area can.
So, I am stuck. How do you create toolbars in a Rich Text Area?
Any tutorials on this, using GWT 2.3 would be great. I am new to this.
Thanks
Bob
// write the editable message
Label header = new Label("Subject:");
header.setSize("580px", "18px");
myMessages.add(header);
final TextBox messageSubject= new TextBox();
messageSubject.setSize("580px", "20px");
myMessages.add(messageSubject);
Label body = new Label("New Message Body:");
final RichTextArea messageBody = new RichTextArea();
messageBody.ensureDebugId("cwRichText-area");
messageBody.setSize("580px", "400px");
RichTextToolbar toolbar = new RichTextToolbar(messageBody);
toolbar.setWidth("580px");
// Add the components to a panel
Grid grid = new Grid(2, 1);
grid.setStyleName("cw-RichText");
grid.setWidget(0, 0, toolbar);
grid.setWidget(1, 0, messageBody);
myMessages.add(grid);
myMessages.add(saveButton);
Ed
> --
> 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/-/JuNwh0rza0gJ.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>