@ProviderType
public interface LongFormTextComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
LONG_FORM_TEXT_PAR |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getTextParagraphs(String text)
Splits long form text into a series of "chunks" delimited.
|
boolean |
hasContents(org.apache.sling.api.resource.Resource resource,
int index)
Determines if the specified long form text parsys has content.
|
void |
mergeParagraphSystems(org.apache.sling.api.resource.Resource resource,
int numParagraphCount)
Housekeeping for the Long Form Text responsible for merging dangling par resource up when
the number of <p> decreases.
|
static final String LONG_FORM_TEXT_PAR
String[] getTextParagraphs(String text)
text - The HTML text to splitvoid mergeParagraphSystems(org.apache.sling.api.resource.Resource resource,
int numParagraphCount)
throws javax.jcr.RepositoryException
resource - the long form text resourcenumParagraphCount - the number of text paragraphsjavax.jcr.RepositoryExceptionboolean hasContents(org.apache.sling.api.resource.Resource resource,
int index)
resource - the long form text resourceindex - the index of the long-form-text parsys to inspectCopyright © 2013–2020 Adobe. All rights reserved.