Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-02-11 11:48:50

MangoPlex
New member
From: Vancouver
Registered: 2006-02-11
Posts: 7
Website

disabling a feature (Toggle HTML source button)

Hi,

Is it possible not to show this button or to gray it out?
I don't want ppl to insert JS into their postings...

Thanks,


[url=http://mangoplex.com/forums/display_forum.php?fid=2]MangoPlex[/url] - The forums centre

Offline

#2 2006-02-14 05:58:54

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: disabling a feature (Toggle HTML source button)

Offline

#3 2006-02-15 09:06:21

mokhet
Xinha Authority
From: Paris, France
Registered: 2005-04-03
Posts: 105
Website

Re: disabling a feature (Toggle HTML source button)

the answer is in htmlarea.js line 561 (changeset 465)

config.hideSomeButtons(" htmlmode ");

quote from htmlarea.js comment :

/** Call this function to remove some buttons/drop-down boxes from the toolbar.
* Pass as the only parameter a string containing button/drop-down names
* delimited by spaces.  Note that the string should also begin with a space
* and end with a space.  Example:
*
*   config.hideSomeButtons(" fontname fontsize textindicator ");
*
* It's useful because it's easier to remove stuff from the defaul toolbar than
* create a brand new toolbar ;-)
*/
HTMLArea.Config.prototype.hideSomeButtons = function(remove) {

Offline

#4 2006-02-15 09:07:43

MangoPlex
New member
From: Vancouver
Registered: 2006-02-11
Posts: 7
Website

Re: disabling a feature (Toggle HTML source button)

Thank you guys!


[url=http://mangoplex.com/forums/display_forum.php?fid=2]MangoPlex[/url] - The forums centre

Offline

#5 2007-11-28 08:39:48

joshna
New member
Registered: 2007-02-06
Posts: 8

Re: disabling a feature (Toggle HTML source button)

Hi

I am working for sun micro systems.I am using xinha editor in my cms project.
When I click on "Toggle HTML Source" button , all the buttons are being disabled.
Can I enable few of these plugins to be active even in html source mode.

Thanks
K.Joshna

Offline

Board footer

Powered by FluxBB