Opened 17 years ago

Last modified 16 years ago

#670 closed Bug

CommandState Incorrect when in 'View Source' Mode — at Initial Version

Reported by: Martin Kou Owned by:
Priority: Normal Milestone: FCKeditor 2.6
Component: UI : Source View Version: SVN (FCKeditor) - Retired
Keywords: Review+ Cc:

Description

When in view source mode a majority of the buttons apear to be off from the editor. However a call to check state on the buttons:

oEditor.Commands.GetCommand( commandName ).GetState();

show the buttons below as still accessible, actually calling the execute function on these commands can sometimes cause problems. For example running find while in view source and actually searching for something that it finds in the source causes script errors.

Although this is not a major issue if one plans to use only the buttons in the editor, I'm attempting to add a menu bar above the buttons, and need to check state to see what buttons are available and not available at any given time.

Here is the list of buttons that show as still available:

Paste PasteText PasteWord SelectAll Find Replace InsertUnorderedList InsertOrderedList Anchor Image Flash Table InsertHorizontalRule Smiley SpecialChar JustifyLeft JustifyCenter JustifyRight JustifyFull Bold Italic Underline StrikeThrough Subscript Superscript Outdent Indent RemoveFormat SpellCheck UniversalKey Templates


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1257865&group_id=75348&atid=543653

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy