jQuery UI Widgets Forums Editors Editor how to change font-family and font-size dynamically

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • First of all, thank you very much for developing such a wonderful library of widgets.

    Depending on the type of text I am adding to the textarea of the jqxEditor, I would like to dynamically change the font-family and font-size of the text being added so that it automatically appears in the proper font as desired. Also, can I similarly set the justfication of the text (left, center, right)?
    I do not want to do this manually through the dropdown menus after the text has been added.

    Also, I would like to know whether the jqxEditor can be used simply as a plain text editor without any HTML markup? If yes, please tell me how?


    Dimitar
    Participant

    Hello jafar_abbas@hotmail.com,

    1. Unfortunately, no such functionality is supported by jqxEditor. Besides, how would the widget “know” what type of text you are entering? You can, however, enter HTML code directly with the “View source” (‘html’) tool. You can also insert your own style sheets in the editor with the stylesheets property.
    2. If you wish, you can set tools to “” (an empty string) and the editor will become a plain text editor. There is also an upcoming jqxTextArea widget which will be similar to jqxInput, but with text wrap.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.