This is a migrated thread and some comments may be shown as answers.

How could I ensure the default font size?

3 Answers 649 Views
Editor
This is a migrated thread and some comments may be shown as answers.
TiborG
Top achievements
Rank 1
TiborG asked on 07 Jan 2015, 11:33 AM
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

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 07 Jan 2015, 02:59 PM

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!
 
0
TiborG
Top achievements
Rank 1
answered on 18 Feb 2015, 09:32 AM
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']" ... />
0
Alex Gyoshev
Telerik team
answered on 19 Feb 2015, 04:15 PM

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!
 
Tags
Editor
Asked by
TiborG
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
TiborG
Top achievements
Rank 1
Share this question
or