-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How to change the default font size in CKEDITOR
Robert.
My Team helped me on this
Seems you didn't have the best start. @Senthil... when you say
default font size
What are you refering to? And what is the expected result ... I think you have enough experience to know that vague questions will give vague answers.
Maybe you can provide some insight on what you want to change. By default the font size of the edited text is unspecified, which is a good thing IMO. Still there's a CSS style applied to the editor content to display this font in a certain size e.g. 13px.
There are many ways to change something like that, the question is what do you want as a result? HTML elements with hard coded styles all over the place? A preselected font size from the drop down? Or simply a larger font while editing without affecting the actual HTML result.
And remember ... we are all friends here in the forum.
Robert
Hello Sentil, have you ever looked in the documentation? IMHO the first entry in the 'fontSize_sizes' list will be the default.
Kai
Hello who are you. Do you think i am new to zk and programming ? Asking without looking and searching for the solution. If you know the solution, answer,
Senthilchettyin ( 2018-01-30 22:29:02 +0800 )editHello Senthilchettyin, who are you? :-) Read the documentation at least until config.contentsCss. So I can set the style attributes for all elements. Or look here for another option https://stackoverflow.com/questions/16339258/ckeditor-4-how-to-set-default-font.
khcyt ( 2018-01-31 21:44:08 +0800 )editAsked: 2018-01-30 01:16:22 +0800
Seen: 28 times
Last updated: Feb 02 '18