Ticket #1019 (closed Bug: fixed)

Opened 5 years ago

Last modified 5 years ago

FCKTableCommand are not context sensitive

Reported by: jonhg Owned by:
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: General Version: SVN (FCKeditor) - Retired
Keywords: Confirmed HasPatch Cc:

Description

The FCKTableCommand class is not context sensitive and this causes the icons from the tablecommands plugin to always be active even if the user is outside of a table.

It should be easy to add correct GetState function to this class.

Something like:

if(FCK.EditorDocument != null){

if(FCKSelection.HasAncestorNode('TABLE')){

return FCK_TRISTATE_OFF ;

}

} return FCK_TRISTATE_DISABLED;

Change History

comment:1 Changed 5 years ago by fredck

  • Keywords Confirmed HasPatch added
  • Version set to SVN
  • Milestone set to FCKeditor 2.5

Good point, and your proposal is seams to be the correct way to implement it. Thanks for it.

comment:2 Changed 5 years ago by martinkou

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

Fixed with [646].

Click here for more info about our SVN system.

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