Don't follow how to put toolbar in RichTextAra

37 views
Skip to first unread message

Bob

unread,
Jun 24, 2011, 8:26:12 PM6/24/11
to google-we...@googlegroups.com

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

Ed

unread,
Jun 24, 2011, 8:49:24 PM6/24/11
to google-we...@googlegroups.com
Try this:

// 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.
>

Bob

unread,
Jun 27, 2011, 7:42:57 AM6/27/11
to google-we...@googlegroups.com
Thanks!  I will give it a try!  Bob

mohamed salah

unread,
Jun 27, 2011, 7:46:49 AM6/27/11
to google-we...@googlegroups.com
--
salam
resloved issus order Gwt Libarary by application

------------------------------------------


Regard: Mohamed salah hasan
Mobile :+20106594094
tel     :+2024460320


objectuser

unread,
Jun 27, 2011, 10:07:59 AM6/27/11
to google-we...@googlegroups.com
Under your Eclipse plugins, find the GWT 2.3 plugin.  It sits in:

gwt-2.3.0/samples/Showcase/src/com/google/gwt/sample/showcase/client/content/text

Reply all
Reply to author
Forward
0 new messages