@ProviderType
public interface RichTextHandler
The interface is implemented by a Sling Model. You can adapt from
SlingHttpServletRequest or Resource to get a
context-specific handler instance.
| Modifier and Type | Method and Description |
|---|---|
@NotNull RichTextBuilder |
get(org.apache.sling.api.resource.Resource resource)
Build formatted text from content resource using default property names.
|
@NotNull RichTextBuilder |
get(String text)
Build formatter text from given raw text string.
|
boolean |
isEmpty(String text)
Check if the given formatted text block is empty.
|
@NotNull @NotNull RichTextBuilder get(org.apache.sling.api.resource.Resource resource)
resource - Resource@NotNull @NotNull RichTextBuilder get(String text)
text - Raw textboolean isEmpty(String text)
text - XHTML text string (root element not needed)Copyright © 2014–2019 wcm.io. All rights reserved.