com.atlassian.renderer.wysiwyg
Interface WysiwygNodeConverter


public interface WysiwygNodeConverter

Macros should implement this interface when they want to take full control of converting xhtml to wiki markup and not let the renderer take care of it. This includes converting the top node representing the macro itself as well as its body (child nodes). Note: macros must also put an attribute of wysiwyg="macro:MACRONAME" during rendering in order for it to be invoked during conversion in the DefaultWysiwygConverter.


Field Summary
static String WYSIWYG_ATTRIBUTE
          The attribute used to indicate that a WysiwygNodeConverter should be used to convert the html element.
 
Method Summary
 String convertXHtmlToWikiMarkup(Node previousSibling, Node node, WysiwygConverter helper, Styles styles, ListContext listContext, boolean inTable, boolean inListItem, boolean ignoreText)
          Returns the converted wiki markup from the given node and its context parameters.
 

Field Detail

WYSIWYG_ATTRIBUTE

static final String WYSIWYG_ATTRIBUTE
The attribute used to indicate that a WysiwygNodeConverter should be used to convert the html element.

See Also:
Constant Field Values
Method Detail

convertXHtmlToWikiMarkup

String convertXHtmlToWikiMarkup(Node previousSibling,
                                Node node,
                                WysiwygConverter helper,
                                Styles styles,
                                ListContext listContext,
                                boolean inTable,
                                boolean inListItem,
                                boolean ignoreText)
Returns the converted wiki markup from the given node and its context parameters.



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.