When you click in the editor text area for the first time the default font is "Times New Roman". How can I make this "Verdana"? I've changed the style sheet and it still defaults to "Times New Roman".
I looked at fckconfig.js and found the list of font names, but there was no "default" or "selected" font config option.
any ideas?
I looked at fckconfig.js and found the list of font names, but there was no "default" or "selected" font config option.
any ideas?
Re: Default Font
check the samples
Re: Default Font
it's a shame the creator of this topic never replied to your response. I too am having the same issue.
I have looked everywhere... well I guess not everywhere since I'm here. But I can't find the place that is causing Times New Roman to be used as the default font in the editor.
My entire CSS for my website is using Arial, Verdana, Sans Serif.
In the fckeditor.css I see no reference for Times New Roman. I have checked all of the skins that are installed for fckeditor for Times New Roman. I've even searched for just Times. I can't find a reference anywhere. As the original poster mentioned, I can't find a reference for changing this in the fckconfig.js configuration.
I am using the Silver skin btw.
Here is what I have from the fckeditor.css
body, td
{
font-family: Arial, Verdana, sans-serif;
font-size: 12px;
}
The above style was default. So again I am at a loss for where to fix this issue.
Here is an image of what fckeditor shows in the editor area when I type.
Your help is much appreciated. I love FCKeditor and I plan on using it alway. I just can't stand Times New Roman.
Thanks,
-neven
Re: Default Font
Re: Default Font
Re: Default Font
thansk for your answers to this topic. I have a further question:
I want to declare "Verdana" as the only font ever used to display type in the dialog box of the fckeditor.
Especially when something is pasted into the dialog box from another programm. E.g.: You copy a text in word and paste it to FCK Editor.
Usually the Font used in Word is taken...
Can you help me?
Best regards,
Christian
Re: Default Font
Re: Default Font
for example, open the editor and input 'abc' in the editor area, the html generated will be like:
but what if I want it to be
by default?
I'm using FCKEditor 2.5
Re: Default Font
Re: Default Font
In fact I don't understand the thinking behind relying on a default font in the editor!
As soon as you move the generated code to a display page, or send it in an email, the displayed font will very likely differ from the editor's (Times New Roman) - not very WYSIWYG!
- Tim
Re: Default Font
We can set text into the editor by
From the editor, if u change the 'Testing 123' font to Verdana, the HTML output is
Using the same method, if we
We'll have initial text of 'Testing 123' with Verdana. Clicking next to that text we can continue to edit in Verdana font. Right? But we don't want the 'Testing 123' as default text.
So replace the 'Testing 123' with empty character which is
Re: Default Font
Solution:
It took me quite a while to figure this out.
Let us say you want to use Verdana as the default font. Here is what you can do:
1. Open contents.css and change the font tag:
font-family: Verdana;
2. In the application/page where the output will be published, add this style:
<style>
.entry-content {font-family: Tahoma;}
</style>
That's it! Now you have change the default font successfully. This works for the font size as well. I just finished developing this question2answer site which utilizes CKEditor and this tiny issue kept me awake for two days!
Hello, I'm facing this
Hello, I'm facing this problem with the output font, I'd like to know if there is a solution for that. My application uses 11px as default font size, I'd like the output to have <p style="font-size:11px"> or wathever size I have in the future.
Thank you in advance.
Any luck?
Same thing for me -- were you able to figure out a solution? On submit, I'm taking the output from the editor and saving to a database, so I need whatever formatting defaults to be persisted as part of that output (which it's not, for me, right now).
Thanks!
Dan