public class

CustomPlaceholderEditorMarshaller

extends Object
implements MacroMarshaller
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.editor.macro.CustomPlaceholderEditorMarshaller

Class Overview

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.

Summary

Public Constructors
CustomPlaceholderEditorMarshaller(CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)
Public Methods
boolean handles(Macro macro)
String marshal(Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext)
Marshall the supplied macro.@return
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.content.render.xhtml.editor.macro.MacroMarshaller

Public Constructors

public CustomPlaceholderEditorMarshaller (CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)

Public Methods

public boolean handles (Macro macro)

public String marshal (Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext)

Marshall the supplied macro.@return

Parameters
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.