0

ckeditor Change default font size

asked 2018-01-30 01:16:22 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

How to change the default font size in CKEDITOR

delete flag offensive retag edit

3 Answers

Sort by » oldest newest most voted
0

answered 2018-01-30 14:53:57 +0800

khcyt gravatar image khcyt
216 1 1

Hello Sentil, have you ever looked in the documentation? IMHO the first entry in the 'fontSize_sizes' list will be the default.

CKEditor Doc

Kai

link publish delete flag offensive edit

Comments

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 )edit

Hello 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 )edit
0

answered 2018-02-02 15:09:04 +0800

cor3000 gravatar image cor3000
6280 2 7

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

link publish delete flag offensive edit
0

answered 2018-02-02 20:55:56 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Robert.

My Team helped me on this

image description

link publish delete flag offensive edit

Comments

thanks for sharing your solution... I now see that you actually wanted to change the displayed font size while editing, and not the default font size of the resulting HTML fragment.

cor3000 ( 2018-02-03 09:40:53 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2018-01-30 01:16:22 +0800

Seen: 28 times

Last updated: Feb 02 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More