|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface WysiwygEditorScriptService
The WYSIWYG editor API exposed to server-side scripts like Velocity.
| Method Summary | |
|---|---|
WysiwygEditorConfiguration |
getConfig()
|
boolean |
isSyntaxSupported(String syntaxId)
Checks if there is a parser and a renderer available for the specified syntax. |
String |
parseAndRender(String html,
String syntaxId)
Parses the given HTML fragment and renders the result in annotated XHTML syntax. |
String |
toAnnotatedXHTML(String source,
String syntaxId)
Converts the given source text from the specified syntax to annotated XHTML, which can be used as input for the WYSIWYG editor. |
| Method Detail |
|---|
boolean isSyntaxSupported(String syntaxId)
This method should be called before attempting to load the WYSIWYG editor.
syntaxId - the syntax identifier, like xwiki/2.0
true if the specified syntax is currently supported by the editor, false otherwise
String parseAndRender(String html,
String syntaxId)
This method is currently used in wysiwyginput.vm and its purpose is to refresh the content of the WYSIWYG
editor. This method is called for instance when a macro is inserted or edited.
html - the HTML fragment to be renderedsyntaxId - the storage syntax identifier
String toAnnotatedXHTML(String source,
String syntaxId)
source - the text to be convertedsyntaxId - the syntax identifier
WysiwygEditorConfiguration getConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||