close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Font Size

Thread began 5/04/2011 7:31 pm by georgevargasa302189 | Last modified 5/06/2011 11:00 am by georgevargasa302189 | 1430 views | 4 replies |

georgevargasa302189

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.

Sign in to reply to this post

neilo

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

Sign in to reply to this post

georgevargasa302189

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?

Sign in to reply to this post

neilo

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.

Sign in to reply to this post

georgevargasa302189

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

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...