Package org.xwiki.wysiwyg.importer
Interface AttachmentImporter
-
@Role public interface AttachmentImporter
Interface used to import existing attachments into the content of a WYSIWYG editor.- Since:
- 9.8
- Version:
- $Id: 4bd6ad5717a8123e0e397f63b7ae2e2b0118f601 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
toHTML(AttachmentReference attachmentReference, Map<String,Object> parameters)
Generates the HTML needed to import the specified attachment.
-
-
-
Method Detail
-
toHTML
String toHTML(AttachmentReference attachmentReference, Map<String,Object> parameters) throws Exception
Generates the HTML needed to import the specified attachment.- Parameters:
attachmentReference
- specifies the attachment to importparameters
- import parameters- Returns:
- the HTML to insert into the content of the WYSIWIYG editor
- Throws:
Exception
- if importing the specified attachment fails
-
-