Announcement

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

    More font sizes in RichTextItem

    Is there any way to add more font size available in RichTextItem? Actually there are just 7 types available, as the widget formats text using html <font> tags.

    I'd like to add more font sizes and set the widget to use font-size property in CSS. Anyway to do that in smartclient and/or smartgwt sources?

    Thanks,
    Matheus

    #2
    It is part of the controlGroups, fontSizeSelector provides that valuemap. You can easily provide your own fontSizeSelector with whatever sizes you want when you setControlGroups(). You can also do it via JSNI editing the fontSizes associative array. As far as your own css applied that might be a challenge since I believe the RichTextEditor just uses the standard document.execCommand to perform actions.

    Comment

    Working...
    X