Forum closed. New forum available at

Hiding default interface buttons

Support forum for WYMeditor.

Hiding default interface buttons

Postby marvelade on Sun Jan 25, 2009 10:06 am

Hello All,

Is there a way of hiding existing interface buttons of WYMeditor? In my self-written CMS I have an alternative system to add pictures, so I don't want people to hotlink to images hemselves.

I don't immediately see a way to edit the behaviour of the "image" button either, so I thought it would be best to add a new button with the functionality I want, but then I'd like to hide the original one.

Thank you all for taking the time to read this.
Best regards,
Posts: 1
Joined: Sun Jan 25, 2009 10:01 am

Re: Hiding default interface buttons

Postby duckypoo on Mon Jan 26, 2009 12:20 am

Here is a demo of how to modify dialogs: ... /examples/. See the "Custom Dialog" example.

Alternatively, you can remove a button by modifying the _options.toolsItems array in preInit(). You might find the little "remove" function below helpful for this purpose.
Code: Select all
   preInit: function(wym){

Code: Select all
Array.prototype.remove = function(from, to){
  this.splice(from, !to || 1 + to - from + (!(to < 0 ^ from >= 0) && (to < 0 || -1) * this.length));
  return this.length;
Posts: 3
Joined: Fri Jun 13, 2008 2:49 am

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest