• Archived  

By doitnow - January 29, 2010

in the drop down I get is "StyleAndFormatting" I need instead to use "FontName"

How do I get the drop down just show the available fonts?


In the source file loadWysiwyg.js I can see the fonts that should be available to the users.

// fonts to display
wysiwyg.arrFontName=["Arial", "Courier New", "Georgia", "Tahoma", "Times New Roman", "Verdana", "impact", "Wingdings"];

I have run the artman_2_16 (tinymce & IE8 patch) - where to now?

Re: [doitnow] wysiwyg - drop down for fonts

  • Archived  

By Donna - February 1, 2010

Hi there!

You've found the right place already -- just edit that to show the fonts that you want to have available. :)
Donna

--
support@interactivetools.com

Re: [Donna] wysiwyg - drop down for fonts

  • Archived  

By doitnow - February 1, 2010

Thanks Donna - this is the template I am using with these fonts listed - but instead of font names I get the drop down listing "Format, Paragraph, Address, Preformatted, Heading1, etc"

I would think it should list just the fonts that I have - suggestions where else this might be set to have the drop down do this?

Re: [doitnow] wysiwyg - drop down for fonts

  • Archived  

By MikeB - February 1, 2010

Hi there,

From what you've mentioned it sounds like the issue is related to the buttons that are set up to display in the WYSIWYG editor. The file you're looking at lists all of the available fonts, though there's a separate JavaScript file that lists which buttons to actually display on your WYSIWYG toolbar as the editor is loaded.

You'll want to log onto your server and navigate to /artman2/javascript/ and open up "loadWysiwyg.js". In this file you're looking for this line of code:

wysiwyg.features=[ // buttons to display

It's quite likely you'll have a value in the section after this line that says "StyleAndFormatting" or "Styles". Just find this (or both) and replace it with "FontName". You may also want to add other basic style features if they were removed such as "FontSize", "Bold", "Italic", or "Underline". Just add these after "FontName" separated by commas. Once you save loadWysiwyg.js back to your server you should no longer see the styles and should see just regular font names in the dropdown.

You'll want to note that I haven't tested the specific WYSIWYG with tweaks and patches that you're using but a change like this shouldn't cause any issues for you and just be sure to back up loadWysiwyg.js before you get started.

Let me know how this works out for you! [:)]

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

<hr /><i><a href="http://www.interactivetools.com/consulting/" rel="nofollow"><b>Hire me!</b></a>
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with <a href="http://www.interactivetools.com/consulting/" rel="nofollow"><b>Priority Consulting</b></a>.</i>

Re: [MikeB] wysiwyg - drop down for fonts

  • Archived  

By doitnow - February 2, 2010

Mike - I think we are closer here. It does look like it is the loadWysiwyg.js file. The one that comes with the standard AM2 is over 240 lines of code - it looks like the "tinyMCE" update for firefox replaced that file with a smaller one of only 91 lines. Of course just a simple replace back to the original does not work (tried that). The tinyMCE update file does reference the site http://wiki.moxiecode.com/index.php/TinyMCE:Control_reference for buttone s - and YES I can see where it calls the first button "formatselect" - instead of what I want is fontname.

I also noticed in the original file there are allot of other functionality that is available as buttons (Strikethrough, spellcheck as examples) - are they available in the tinyMCE file - unknown.

Ok I changed the formatselect to be fontselect - reloaded the file on server - and it is fixed - it lists the fonts available.

Problem solved - the tinymce file patch caused the problems. I will continue to investigate now how to add the spellcheck feature - http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker - any help in this plugin add would be helpful.

Thanks again

Re: [MikeB] wysiwyg - drop down for fonts

  • Archived  

By Big_Lu - February 24, 2010

Hi, I am unable to get my web hosting company to add font styles to my CMS editor. Can you help so that I can give them direction? There's a dropdown list for "format" and "font size" but I know that I should be able to have a dropdown for "font style".

Thanks!

Re: [Big_Lu] wysiwyg - drop down for fonts

  • Archived  

By Donna - February 25, 2010

Hi Big_Lu,

Are you using Article Manager? Can you let me know what version? Are you using the IE8 patch?
Donna

--
support@interactivetools.com

Re: [Donna] wysiwyg - drop down for fonts

  • Archived  

By Big_Lu - February 25, 2010

I don't know. Our web hosting company set us up with a CMS editor v.1.36. I'm assuming it's yours since after I am logged in and click "help" at the top it brings me to http://www.interactivetools.com/docs/cmsbuilder

Re: [Big_Lu] wysiwyg - drop down for fonts

  • Archived  

By Donna - February 26, 2010

Hi there,

Ah, that sounds like CMS Builder, not Article Manager. Try posting in the CMS Builder forum here:

http://www.interactivetools.com/forum/gforum.cgi?forum=35;

Also, take a look at this post for more specific information on adding styles to CMS Builder:

http://www.interactivetools.com/forum/gforum.cgi?post=75224#75224
Donna

--
support@interactivetools.com