Ticket #1288 (closed New Feature: fixed)

Opened 2 years ago

Last modified 2 years ago

Make the "More Colors..." button optional

Reported by: Proner Owned by:
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: UI : Toolbar Version: FCKeditor 2.4.3
Keywords: Cc:

Description

Hi,

It would be very useful to make the "More Colors..." button optional. We want to reduce the number of colors available for our users. That is almost done by the FCKConfig.FontColors property, but as the "More Colors..." button is always available we can't achieve our wish. We have currently fix it within the source code (and repackage FCKEditor) but this is not a good way as we have to think (and sometimes forget) of it at each update.

Our Proposition :

(fckconfig.js)

FCKConfig.EnableMoreFontColors = true ;

(fcktextcolorcommand.js)

if ( FCKConfig.EnableMoreFontColors ) {
    // Create the Row and the Cell for the "More Colors..." button.
    oCell = oTable.insertRow(-1).insertCell(-1) ;
    oCell.colSpan = 8 ;

    oDiv = oCell.appendChild( CreateSelectionDiv() ) ;
    oDiv.innerHTML = '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td nowrap align="center">' + FCKLang.ColorMoreColors + '</td></tr></table>' ;

    oDiv.Command = this ;
    oDiv.onclick = FCKTextColorCommand_MoreOnClick ;
}

Thanks in advance

Change History

Changed 2 years ago by fredck

  • milestone set to FCKeditor 2.5

Changed 2 years ago by martinkou

  • status changed from new to closed
  • resolution set to fixed

Fixed with [895].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.