Ticket #1019 (closed Bug: fixed)

Opened 2 years ago

Last modified 2 years ago

FCKTableCommand are not context sensitive

Reported by: jonhg Owned by:
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: General Version: SVN (FCKeditor)
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

Changed 2 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.

Changed 2 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.