Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Page Publisher:
Text

 

 


Nn82cC
New User

Dec 9, 2005, 9:02 AM

Post #1 of 2 (1777 views)
Shortcut
Text Can't Post

We are trying to figure a way to set-up the wysiwg editor to only allow our clients to make certain changes to the text. We only want them to be allowed to change Bold, Italic, and the gerneral text...not size or font type...Help


MikeB
Staff / Moderator


Dec 10, 2005, 11:20 AM

Post #2 of 2 (1753 views)
Shortcut
Re: [Nn82cC] Text [In reply to] Can't Post

Hi,

Thanks for the post! Smile

The WYSIWYG editor used in Page Publisher isn't something we actively offer a lot of support for. That said, I've taken a quick look at the .js file used for this and it should be a pretty quick fix to remove the tools that you don't want to show up.

You'll just want to open up /pp/images/htmlarea/editor.js in an HTML/Text editor of your choice and look for this block of code:


this.toolbar = [
['fontname'],
['fontsize'],
// ['fontstyle'],
//
['bold','italic','underline','separator'],
// ['strikethrough','subscript','superscript','separator'],
['justifyleft','justifycenter','justifyright','separator'],
['OrderedList','UnOrderedList','Outdent','Indent'],
['linebreak'],
['forecolor','backcolor','separator'],
['HorizontalRule','Createlink','InsertImage','InsertTable','htmlmode','separator'],
// ['custom1','custom2','custom3','separator'],
['popupeditor']];


This is the code that outputs all of the buttons that your users can use. So, for example, you could just modify this line from the above code:

['fontname'],

So it looks like this:

[],

From there, the ability to choose the font type will no longer show up. I'd recommend making a backup of this file before you make any changes to it.

I hope this helps and if you have any other questions, just let me know! Smile

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

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]