HTML area - customize toolbar

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

HTML area - customize toolbar

Post by spirelli »

>>> here is a description of how to customize the toolbar of HTML area.

However, how can I get this done with phpwcms? Normally the values for customizing the toolbar go in the header of the document that contains the text area - if I understand correctly.

But where would I have to put the config.toolbar values in phpwcms?

I want to use HTML area, becuse it also works with Firefox, but I need to hide some buttons so that the different people who use the systhem don't make a mess.


Thanks for any help.
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

ok, I've worked out. And here is how it goes:

>> OPEN: include\inc_lib\htmlarea.editor.inc.php

>> FIND:

Code: Select all

config.toolbar
and cusromize the values that follow

This will determin which buttons show and which order they are in. You can add spaces and seperators.



I also like the look of the Spaw editor much better than HTMLArea. However, Spaw does not work with Mozilla/Firefox. Therefore I've replaced the buttons in HTMLArea with the Spaw buttons.

First of all you have to move the appropriate buttons to the HTMLArea 'img' forlder (include\inc_ext\htmlarea\plugins\TableOperations\img) and rename them accordinly. I created some extra buttons for the table operations. Then you have to:

>> OPEN: include\inc_ext\htmlarea\htmlarea.js

>> FIND:

Code: Select all

img.style.width = "18px";
img.style.height = "18px";
and change the 18 to 24.

Upload, and it's done.



My HTMLArea toolbar now looks like this:

Image


now I'm only left to wonder how to get the spell check showing. Anyone?
Post Reply