Default font and fontsize

2 posts, 0 answers
  1. Ufficio Acquisti
    Ufficio Acquisti avatar
    3 posts
    Member since:
    Mar 2015

    Posted 06 Apr Link to this post


    I've got a problem with your textarea under angularjs.

    I need to initialize control as you can check here:

    but, when there's no text, i DON'T want "inherited font" and "inherited size" as default selection for comboboxes, i have to select fontsize and fonttye from settings i read on my setting db.

    When something is written inside, it's accettable selection mentioned above... really it would be better if selection correstond to the font and size used to write text present inside.

    Thanks a lot


  2. Niko
    Niko avatar
    383 posts

    Posted 07 Apr Link to this post


    The value of the font-size and font-name drop-downs depend on the selected text in the editor content area. The inherited value actually signifies the lack of any explicitly defined font-size or font-name for the selected element. Therefore the value of those drop-downs are not defined by an outside value, but from within the content area.

    You can change the text for the inherited value through the messages option in the editor - and

    If you wish to define different default values for font-family and font-size, then you should check the option for adding additional stylesheets to the editor - Also if you use the inline mode of the editor, where the styling on the page influenced the styling in the content area as well, then you would not need the stylesheets option.

    Hope this helps.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top