Opened 9 years ago

Closed 9 years ago

#1288 closed New Feature (fixed)

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 (2)

comment:1 Changed 9 years ago by fredck

  • Milestone set to FCKeditor 2.5

comment:2 Changed 9 years ago by martinkou

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with [895].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.
© 2003 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy