Announcement

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

    RichTextItem Border

    How can we show edges on RichTextItem? RichTextEditor has setShowEdges(boolean), but there is no equivalent method for the RichTextItem.


    Thanks,
    Stonebranch

    #2
    One way to do it is to place a RichTextEditor with setShowEdges(true) inside of a CanvasItem. Bear in mind, the RichTextEditor is then independent of the form, so if you want to submit it's value with the rest of the form, immediately before submit grab it's value and call form.setValue() with it. The form will then save this (extra) value just like the value of a normal item.

    Comment


      #3
      A simpler way is:

      Code:
      RichTextItem richTextItem = new RichTextItem();
      richTextItem.setWidth("*");
      richTextItem.setCellStyle("richTextItemCellStyle");
      Code:
      .richTextItemCellStyle {
      	background-color: inactiveborder;
      }

      Comment


        #4
        For me worked this one:

        Code:
        RichTextItem txtText = new RichTextItem( "Text", "Text" );
        txtText.setShowTitle( true );
        txtText.setWidth( "*" );
        txtText.setCellStyle("textItem");
        txtText.setColSpan( 1 );
        txtText.setHeight( 400 );

        Comment

        Working...
        X