close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Editor always types in Times roman - how can I change this to Arial?

Thread began 6/09/2009 10:18 am by peter348932 | Last modified 11/16/2009 10:25 am by Ray Borduin | 4520 views | 12 replies |

peter348932

Editor always types in Times roman - how can I change this to Arial?

I have integrated PowerCMs into my first site is its looking good - however my site uses Arial and although anything editted in PowerCMS get display on my site in arial durting editting its in Times roman and this gives my cient the jitters.
can I configure the powerCMS editor to start in my styles? ie font size 11 and in Arial?
I have seen a reply to someone else and it talks about iRite - I know its part of PowerCMS but I don't know anything about iRite and how to configure it please give simple guide and what files I need to edit - thanks.
love the powercms by the way - has made my job a lot easier!

Sign in to reply to this post

Ray BorduinWebAssist

To edit the files by hand without iRite, you can follow the fckeditor documentation:

EditorAreaStyles

Sign in to reply to this post

peter348932

thanks ofrthat - BTW - can I get hold of how to use iRite >

Sign in to reply to this post

Ray BorduinWebAssist

To find out about iRite view:

irite/

Sign in to reply to this post

johnd45081

Change Editor Fonts

This is the most annoying feature of iRite that there appears to be no facility to easily set the default text of the FCK Editor which shows as Times Roman.

It is easy to fix. You will need to update WA_PowerCMS/WA_iRite/custom/contents_insert_ContentValue1.js and contents_update_ContentValue1.js to include the following line at around line 45:

FCKConfig.EditorAreaStyles = 'body { font-family: Arial, Helvetica, sans-serif; font-size: 11px; }';

Different text styles can be defined to suit your needs. You can also add more styles in the statement.

Sign in to reply to this post

peter348932

well done that's the one !!

Excellent call! - I've just spent 1 hour messing with fckconfig.js and the fck_editorarea.css files with no luck - thank you!!

Sign in to reply to this post

roby258376

My problem is that the text size is too large. I tried editing the files as suggested and there was no change in my irite interface. Any other suggestions?

Just an edit, it would seem that the problem was being caused by a conflict between an older version of irite, which was one one page, and the new version which was on another page. As soon as I deleted both and redid Irite, they work properly.

Sign in to reply to this post

joannet256841

Displaying css styles in drop down 'Format' Menu and in editor itself

I would like to display how the various styles look in the 'Format' drop down menu as well as in the editor section itself. At present, it only shows plain text, bolding, italics, but not the exact style as in the site's stylesheet.

After referring to the following in this post:

"To edit the files by hand without iRite, you can follow the fckeditor documentation:

http://docs.fckeditor.net/FCKeditor_...itorAreaStyles"

I noted another helpful link - EditorAreaCSS which states:

You can precisely simulate the output of your site inside FCKeditor, including background colors, font styles and sizes and custom CSS definitions. To do that, just point this setting to the CSS file that you want the editor to use. You may use a simple string, setting the CSS file path, or even a string array, with more than one CSS file to be loaded. Example:

FCKConfig.EditorAreaCSS = '/mycssstyles/editorstyle.css' ;

By default, FCKeditor uses a very simple file located at "editor/css/fck_editorarea.css". You can place your file outside the FCKeditor directory and just point to that.

------------

When I browse to contents_insert_ContentValue1.js and contents_update_ContentValue1.js, I see the following code that the above is referring to:

FCKConfig.EditorAreaCSS = ''; // relative to fckeditor/editor/fckeditor.html

-------------

My site's stylesheet is located here - style.css.

Would anyone know how I would make reference to this stylesheet as it says it should be relative to fckeditor/editor/fckeditor.html?

Would it be something like ../../../design/style.css??

Thanks

Sign in to reply to this post

Ray BorduinWebAssist

You should be able to find the .js file in the iRite/custom directory associated with the iRite instance you want to update.

Then add the reference as you have found in the documentation.

I think it would be "../../design/style.css" if I remember correctly, but try both if one does't work.

Sign in to reply to this post

joannet256841

Hi Ray,

I have accessed the following files:

cms/WA_iRite/custom/contents_insert_ContentValue1.js and cms/WA_iRite/custom/contents_update_ContentValue1.js

and found the line:

FCKConfig.EditorAreaCSS = '../../../design/style.css'; // relative to fckeditor/editor/fckeditor.html

As you can see, I added the relative path to my stylesheet where necessary.

This has put some of the styles in the drop down box and they show up in the editor itself.

However, I have noticed that not all of the styles in the stylesheet are appearing in the drop down menu.

Please explain how I can add these to the editor drop down box.

Exact files and code would be most appreciated.

Thanks for your help.

Sign in to reply to this post
loading

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