Hello,
I have noticed some incompatibility of RichTextEditor (and RichTextItem accordingly) when the client browser is Internet Explorer (tested in versions 9 and 10), while it works as expected in FireFox. This applies also to the showcase example in smartgwt showcase page (SmartGWT 5.0).
More specifically, in IE, when pressing any button of the toolbar, the carret is disappearing from the edit area and user has to click again into the edit area in order to continue writing. Moreover the button effect doesn't seem to apply. For example, user writes something, then clicks the [B] (bold) button, the carret is disappeared, click again in the edit area to gain focus, continues writing but no bold characters are written. In order to write in bold, user has to write some text, then select it and then press the [B] button. When having to style fonts this is bearable, the real problem is with bullet controls (not enabled in the showcase). It is almost impossible to write a bullet list (ordered or unordered) in IE. Clicking on the respective button seems to do nothing, selecting some text and clicking the list button simple creates one bullet (or number) with the selected text and it is not possible to create another (usually by pressing enter a new bullet/number should appear under the previous one in the edit area).
Some sample code in SmartGWT 4.1 is the following:
Please provide me some info/workaround
I have noticed some incompatibility of RichTextEditor (and RichTextItem accordingly) when the client browser is Internet Explorer (tested in versions 9 and 10), while it works as expected in FireFox. This applies also to the showcase example in smartgwt showcase page (SmartGWT 5.0).
More specifically, in IE, when pressing any button of the toolbar, the carret is disappearing from the edit area and user has to click again into the edit area in order to continue writing. Moreover the button effect doesn't seem to apply. For example, user writes something, then clicks the [B] (bold) button, the carret is disappeared, click again in the edit area to gain focus, continues writing but no bold characters are written. In order to write in bold, user has to write some text, then select it and then press the [B] button. When having to style fonts this is bearable, the real problem is with bullet controls (not enabled in the showcase). It is almost impossible to write a bullet list (ordered or unordered) in IE. Clicking on the respective button seems to do nothing, selecting some text and clicking the list button simple creates one bullet (or number) with the selected text and it is not possible to create another (usually by pressing enter a new bullet/number should appear under the previous one in the edit area).
Some sample code in SmartGWT 4.1 is the following:
Code:
public void onModuleLoad() {
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
final RichTextEditor richTextEditor = new RichTextEditor();
richTextEditor.setHeight(155);
richTextEditor.setOverflow(Overflow.HIDDEN);
richTextEditor.setCanDragResize(true);
richTextEditor.setShowEdges(true);
richTextEditor.setControlGroups("formatControls", "styleControls", "bulletControls");
layout.addMember(richTextEditor);
layout.draw();
}