Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with RichTextEditor

    Hello,
    I'm using SmartGWT 3.1p-2013-03-14 and I'm having problems with RichTextEditor in Chrome 27.
    When the RichText is displayed the user can only enter text as if the control were a TextItem.
    When pressing enter the Control gains height.
    To understand better I'm enclosing a sreenshot.
    Here's some code to reproduce the problema:

    Code:
    import com.google.gwt.core.client.EntryPoint;
    import com.smartgwt.client.types.Overflow;
    import com.smartgwt.client.widgets.Canvas;
    import com.smartgwt.client.widgets.IButton;
    import com.smartgwt.client.widgets.RichTextEditor;
    import com.smartgwt.client.widgets.events.ClickEvent;
    import com.smartgwt.client.widgets.events.ClickHandler;
    import com.smartgwt.client.widgets.layout.VLayout;
    
    public class ProblemaChromeRichText implements EntryPoint {
    
    	@Override
    	public void onModuleLoad() {
    		VLayout layout = new VLayout();  
            layout.setMembersMargin(5);  
      
            final Canvas htmlCanvas = new Canvas();  
            htmlCanvas.setHeight(800);  
            htmlCanvas.setWidth(900);  
            htmlCanvas.setPadding(2);  
            htmlCanvas.setOverflow(Overflow.HIDDEN);  
            htmlCanvas.setCanDragResize(true);  
            htmlCanvas.setShowEdges(true);  
            htmlCanvas.setContents("Click <b>Set Canvas HTML</b> to display edited content.");  
      
            final RichTextEditor richTextEditor = new RichTextEditor();  
            richTextEditor.setHeight(155);  
            richTextEditor.setWidth(900);
            richTextEditor.setOverflow(Overflow.HIDDEN);  
            richTextEditor.setCanDragResize(true);  
            richTextEditor.setShowEdges(true);  
      
            // Standard control group options include  
            // "fontControls", "formatControls", "styleControls" and "colorControls"  
            //richTextEditor.setControlGroups(new String[]{"fontControls", "styleControls"});  
            layout.addMember(richTextEditor);  
      
            IButton button = new IButton("Set Canvas HTML");  
            button.setWidth(150);  
            button.addClickHandler(new ClickHandler() {  
                public void onClick(ClickEvent event) {  
                    htmlCanvas.setContents(richTextEditor.getValue());  
                }  
            });  
      
            layout.addMember(button);  
            layout.addMember(htmlCanvas);  
      
            layout.draw();  
    	}
    
    }
    Attached Files

    #2
    This is assigned to a developer for investigation. We'll let you know when we have any information

    Regards
    Isomorphic Software

    Comment


      #3
      We're not reproducing this with the attached test case.
      Can you try the latest nightly build and let us know if this is still happening for you?

      If so, can you also show us what your .html file and your .gwt.xml files look like?

      Thanks

      Comment


        #4
        Set Default Font Size For the Editor

        I want to set the Default font Size And Font Style for A Text Editor
        You have Any idea how to set the Default Values for Editor so that when i edit Something will edit on set default criteria

        Comment

        Working...
        X