public class AemRichText extends Object implements Configurable
| Modifier and Type | Field and Description |
|---|---|
static String |
RT_BUTTON_CSS
Locator of buttons in richtext's toolbar.
|
static String |
RT_TOOLBAR
Locator of richtext's toolbar.
|
| Constructor and Description |
|---|
AemRichText() |
| Modifier and Type | Method and Description |
|---|---|
AemRichText |
clear()
Clears the content of richtext's text area.
|
AemRichText |
click(RtButton button)
Clicks the button indicated by the parameter.
|
String |
getInnerHTML() |
String |
read()
Reads whole text from the text area and returns it.
|
AemRichText |
selectAll()
Selects all text from the text area.
|
AemRichText |
selectText(int startPos,
int endPos)
Selects text in the text area between indices provided as parameters.
|
AemRichText |
setCursorAtEndPos()
Sets the cursor at the end of the current line.
|
AemRichText |
setCursorAtStartingPos()
Sets the cursor at the beginning of the current line.
|
void |
setValue(String value)
Sets the value in AemElement.
|
AemRichText |
type(CharSequence text)
Types the provided text into richtext's text area.
|
AemRichText |
typeLine(CharSequence text)
Types the provided text into richtext's text area and then types "enter".
|
AemRichText |
typeNewLine()
Enters new line sign into text area.
|
public static final String RT_TOOLBAR
public static final String RT_BUTTON_CSS
public AemRichText click(RtButton button)
button - buttonpublic AemRichText type(CharSequence text)
text - textpublic AemRichText clear()
public AemRichText typeLine(CharSequence text)
text - textpublic AemRichText typeNewLine()
public AemRichText selectAll()
public AemRichText setCursorAtStartingPos()
public AemRichText setCursorAtEndPos()
public String read()
public AemRichText selectText(int startPos, int endPos)
startPos - the beginning positionendPos - the ending positionpublic String getInnerHTML()
public void setValue(String value)
ConfigurablesetValue in interface Configurablevalue - configuration value to be setCopyright © 2016–2018 Cognifide Ltd.. All rights reserved.