hi all,
sorry for opening another topic for setting the default font. but I could nowhere find anything about saving the configured default font as html source.
when i configure a font-family for the body tag in fck_editorarea.css (or my custom css file) the editor can initially be used with the configured font. but in the html source no font tag with the configured font is set.
so the problem is if you save a text which is shown with a default font you won't have any font tag defined for it in the database. that's a big problem when you export it into a pdf or an email because then the configured default font won't be used for this text.
please help - it's really urgent
Mon, 05/19/2008 - 14:52
#1
Re: Set Default Font and have it also in html source to be saved
I would suggest you injecting the contents inside a full HTML page with <body>, defining the styles for <body> with the font you want.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: Set Default Font and have it also in html source to be saved
sorry, but i don't really understand what you mean with:

"I would suggest you injecting the contents inside a full HTML page with <body>, defining the styles for <body> with the font you want."
do you meen that the users should enter html tags with the font tag they want into the fckeditor field to the right result? because that's no way we can do this.
to be sure that you understand me correctly - I want that the users can go to the page and give in their information into the fckeditor field where they see their text in their default font and it is saved with font tags of this defaulted font too. not only as it is now, that they seem to have given in the text with the right font type because they see it in the editor, but it's not saved with this font tag.
is there really no way to get this done with fckeditor?
thx
Re: Set Default Font and have it also in html source to be saved
The right way:
- User type text, formatting it with the editor.
- Text is saved in a DB, or something, or even simply processed to be sent.
- If the text is to be sent by e-mail, the application appends the outer <html> and <body> tags to it, including the basic styles definition (fonts for example).
For point 3, it means that the contents need to be prepared "by the application" "before outputting it". This is transparent to the end user.For example, suppose the user typed the some text, and the following has been saved on the DB:
Before sending your e-mail, you simply expand the above HTML, including your preferred styles:
Then, just send the above HTML, still having the original content intact, without the useless formatting stuff.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn