How could I ensure the default font size?

4 posts, 0 answers
  1. Radu
    Radu avatar
    34 posts
    Member since:
    Oct 2012

    Posted 07 Jan 2015 Link to this post

    When I start to type text, I'd like the text to be by default set to a specified size. For example, let's say I want a default font size of 14px.
    The rich text that is being generated should have the "font-size" attribute:
    <p><span style="font-size:14px;">my text</span></p>

    Thank you
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 07 Jan 2015 Link to this post

    Hello Radu,

    The proper way to ensure a default style is to set it in a stylesheet via the stylesheets configuration option:

    body { font-size: 14px; }

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Radu
    Radu avatar
    34 posts
    Member since:
    Oct 2012

    Posted 18 Feb 2015 in reply to Alex Gyoshev Link to this post

    Where should those stylesheets be located? How are they loaded, dynamically by kendo or I have to include a <link>?
    What is the syntax for Angular style?
     <textarea k-stylesheets= "['base.css']" ... />
  5. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 19 Feb 2015 Link to this post

    Hello Radu,

    The stylesheets need to be referred to either by a link relative to the current page, or via an absolute link. They are loaded by the editor automatically (it inserts the links in the iframe editing sandbox). The AngularJS syntax that you mentioned is correct.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready