Ticket #1019 (closed Bug: fixed)
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
Note: See
TracTickets for help on using
tickets.