@Component @Singleton @Named(value="edit.syntaxContent") @Unstable public class SyntaxContentEditScriptService extends AbstractTypedEditScriptService<org.xwiki.rendering.syntax.SyntaxContent>
SyntaxContent Editors.| Constructor and Description |
|---|
SyntaxContentEditScriptService() |
| Modifier and Type | Method and Description |
|---|---|
Editor<org.xwiki.rendering.syntax.SyntaxContent> |
getDefaultTextEditor() |
Editor<org.xwiki.rendering.syntax.SyntaxContent> |
getDefaultWysiwygEditor() |
String |
text(String content,
org.xwiki.rendering.syntax.Syntax syntax,
Map<String,Object> parameters)
Generates the HTML code needed to edit the given data.
|
String |
wysiwyg(String content,
org.xwiki.rendering.syntax.Syntax syntax,
Map<String,Object> parameters)
Generates the HTML code needed to edit the given data.
|
getDataType, getDefaultEditor, getDefaultEditor, getDefaultEditorId, getDefaultEditorId, getEditor, getEditors, getEditorspublic Editor<org.xwiki.rendering.syntax.SyntaxContent> getDefaultTextEditor()
SyntaxContent editor in the "Text" categorypublic Editor<org.xwiki.rendering.syntax.SyntaxContent> getDefaultWysiwygEditor()
SyntaxContent editor in the "WYSIWYG" categorypublic String text(String content, org.xwiki.rendering.syntax.Syntax syntax, Map<String,Object> parameters) throws EditException
content - the text content to editsyntax - the syntax of the given contentparameters - the edit parametersSyntaxContentEditException - if rendering the editor failspublic String wysiwyg(String content, org.xwiki.rendering.syntax.Syntax syntax, Map<String,Object> parameters) throws EditException
content - the text content to editsyntax - the syntax of the given contentparameters - the edit parametersSyntaxContentEditException - if rendering the editor failsCopyright © 2004–2017 XWiki. All rights reserved.