MozileUnformatCommand
(<String> configString)
Mozile Unformat Command Object -
This command will remove all formatting from an non-collapsed selection, or remove the wrapper element from around the current node if the selection is collapsed.
Mozile Unformat Command Object -
This command will remove all formatting from an non-collapsed selection, or remove the wrapper element from around the current node if the selection is collapsed.
A "tag" option can be set, in which case the command will remove only that tag. For example, "tag=a" will remove link tags. This is optional.
Parameters:
configString - A properly formatted configuration string.
Method Detail
execute
Void execute(<Event> event)
Executes the command.
Parameters:
event - The event object which triggered the command.
getTag
String getTag()
Gets the tag to be removed, if that option has been set.
If the Mozile option "replaceAnchors" is set, then the method replaces "a" with "mozileReplaceAnchors".
isAvailable
Boolean isAvailable()
If this command has its "tag" option set, this method checks to see if an ancestor has the matching tag name.