Font Size
I noticed that Font size is not in points which most people expect. Selecting size 18 gives a size of about 13.5 points.
Is it possible to have size be in points? Otherwise the text in an email always comes out smaller than expected.
I noticed that Font size is not in points which most people expect. Selecting size 18 gives a size of about 13.5 points.
Is it possible to have size be in points? Otherwise the text in an email always comes out smaller than expected.
You can change px to pt, but this will also affect any other instances of HTMLEditor you have added to your site (other than those included in WebAssist Solutions which have been uploaded to their own directory) as it is a common file.
In the block of code at line 54 of webassist/ckeditor/ckeditor.js, find:
fontSize_sizes='8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px';
and change each instance of 'px' to 'pt'.
If you are using HTMLEditor as part of an emailing solution, there may be font-sizes pre-set in the template you are using (if you are).
Thank you very much!!!
Can I set the default font size in the same file?
I noticed if I select a font size and start typing, the size is not in effect. I have to go back and select the text, and reselect the font size. Is this a bug?
Hi George,
No - this is the default setting. That means that whatever a user enters (without selecting a font size from the fontSize select list) will appear on your page or email template using the style that is applied to its containing element wherever the HTMLEditor text is output to. This ensures that - unless otherwise specified - the style that is applied will be the correct one as defined by you in a stylesheet or inline style for that containing element.
I think the best way for you would be to make sure that the font-size is specified in the css for the containing element (i.e. in the div or span on the page or template that 'contains' the output from whatever is entered in to the editor.
If you set a default text size for the editor, then everything that the editor window contains will change to that default, which on some lines will be OK, but in others it won't; in some cases you might end up spending more time having to set a style for much of the input text that you don't want to appear in that default style - especially if you have instances of the editor on other pages, now or in the future.
HTMLEditor also allows you to attach your own stylesheet (the little pencil to the right of the Editor Preset Drop down list > 'Styling' tab) in which you can specify the body style it will apply to default input, - this may be what you're after, but the safest way to get the end results in specific places is to set the style for the containg element on the page itself. I think.
Hi Neilo,
As to your suggestion regarding the default font size; changing the content.css file worked great! I set it as follows;
font-family: Times New Roman, Times, serif;
font-size: 12pt;
At first I only changed the font size, and the email was correct, but the editor display showed a different font. Then I changed the Font-family in content.css and both were in agreement.
The email template already called out the size I wanted but until I changed the content.css, the size in the email was wrong.
Thank you,
George
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.