@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class) public class ResourceRichText extends Object
Optional use parameters when referencing model from Sightly template:
propertyName: Property name in which the text is stored in the resourceisRichText: Set to false if text to format is plain text.| Constructor and Description |
|---|
ResourceRichText() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMarkup()
Returns the formatted text as XHTML markup.
|
boolean |
isValid()
Returns true if rich text is present and valid.
|
public boolean isValid()
public String getMarkup()
Copyright © 2014–2019 wcm.io. All rights reserved.