org.xwiki.gwt.wysiwyg.client.plugin.link
Class EmptyLinkFilter
java.lang.Object
org.xwiki.gwt.wysiwyg.client.plugin.link.EmptyLinkFilter
- All Implemented Interfaces:
- CommandListener
public class EmptyLinkFilter
- extends Object
- implements CommandListener
Client side empty link cleaner, to delete all links without content before the content is submitted. This is to
prevent the links which are not visible in the wysiwyg to get submitted as wysiwyg content.
- Version:
- $Id: 4d05ad70e8ab53b88158197847fae4119b973624 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyLinkFilter
public EmptyLinkFilter(RichTextArea rta)
- Creates an empty link filter to handle links on the passed rich text area.
- Parameters:
rta - the RichTextArea to handle empty links for
onBeforeCommand
public boolean onBeforeCommand(CommandManager sender,
Command command,
String param)
-
- Specified by:
onBeforeCommand in interface CommandListener
- See Also:
CommandListener.onBeforeCommand(CommandManager, Command, String)
onCommand
public void onCommand(CommandManager sender,
Command command,
String param)
-
- Specified by:
onCommand in interface CommandListener
- See Also:
CommandListener.onCommand(CommandManager, Command, String)
Copyright © 2004-2012 XWiki. All Rights Reserved.