public class CustomPlaceholderEditorMarshaller extends Object implements MacroMarshaller
Marshal a macro that provides its own HTML representation for the editor.
This marshaller will perform a simple check to try and ensure that the generated placeholder is an IMG or OBJECT tag which is a current limitation on the custom placeholder accepted by the TinyMCE Editor.
Constructor and Description |
---|
CustomPlaceholderEditorMarshaller(CommonMacroAttributeWriter commonAttributeWriter,
PlaceholderUrlFactory placeholderUrlFactory,
XMLOutputFactory xmlOutputFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
handles(Macro macro) |
Streamable |
marshal(Macro macro,
MacroDefinition macroDefinition,
ConversionContext conversionContext)
Marshall the supplied macro.
|
public CustomPlaceholderEditorMarshaller(CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)
public boolean handles(Macro macro)
handles
in interface MacroMarshaller
macro
- the macro to check. This may be null.public Streamable marshal(Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext) throws XhtmlException
MacroMarshaller
marshal
in interface MacroMarshaller
macro
- the macro to be marshalled. It may be null, such as in the case where a Macro has not been identified by the system.XhtmlException
Copyright © 2003–2019 Atlassian. All rights reserved.