public class MacroPlugin extends org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
| Modifier and Type | Field and Description |
|---|---|
static Command |
COLLAPSE
Rich text area command for collapsing all the macros.
|
static Command |
EXPAND
Rich text area command for expanding all the macros.
|
static Command |
INSERT
Rich text area command for inserting a macro in place of the current selection.
|
static Command |
REFRESH
Rich text area command for refreshing macro output.
|
| Constructor and Description |
|---|
MacroPlugin(MacroServiceAsync macroService)
Creates a new macro plug-in that uses the specified macro service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
edit()
Start the edit macro wizard.
|
MacroServiceAsync |
getMacroService() |
MacroSelector |
getSelector() |
void |
init(RichTextArea textArea,
Config config) |
void |
insert()
Start the insert macro wizard.
|
void |
insert(String macroId)
Skip the select macro wizard step and go directly to the edit macro wizard step for the specified macro.
|
getConfig, getTextArea, getUIExtensionList, getUIExtensions, saveRegistration, saveRegistrationspublic static final Command REFRESH
public static final Command COLLAPSE
public static final Command EXPAND
public static final Command INSERT
public MacroPlugin(MacroServiceAsync macroService)
macroService - the macro service to be used for retrieving the macro descriptorspublic void init(RichTextArea textArea, Config config)
init in interface Plugininit in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginpublic void destroy()
destroy in interface Plugindestroy in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginpublic MacroSelector getSelector()
public MacroServiceAsync getMacroService()
public void edit()
public void insert()
public void insert(String macroId)
macroId - a macro identifierCopyright © 2004–2016 XWiki. All rights reserved.