Textv2

Text allows the display of a rich text paragraph on the page. Various formatting options are available.

Examples

Standard

Simple paragraph of text with no formatting applied.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Eu mi bibendum neque egestas congue quisque egestas. Varius morbi enim nunc faucibus a pellentesque. Scelerisque eleifend donec pretium vulputate sapien nec sagittis.

  1. text: <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Eu mi bibendum neque egestas congue quisque egestas. Varius morbi enim nunc faucibus a pellentesque. Scelerisque eleifend donec pretium vulputate sapien nec sagittis.</p>
  2. sling:resourceType: core-components-examples/components/text
  3. textIsRich: true
    
        

    

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Eu mi bibendum neque egestas congue quisque egestas. Varius morbi enim nunc faucibus a pellentesque. Scelerisque eleifend donec pretium vulputate sapien nec sagittis.

Type Formatting

Type formatting options are provided in the rich text editor (bold, underline, italic, subscript, superscript). It is also possible to configure the type based on predefined paragraph styles.

Bold can be used to emphasize a word or phrase, as can underline and italics. Superscript and subscript are useful for mathematical (E = mc2) or scientific (h2O) expressions. Paragraph styles can provide alternative renderings, such as quote sections:

"Be yourself; everyone else is already taken"
- Oscar Wilde
  1. text: <p><b>Bold </b>can be used to emphasize a word or phrase, as can <u>underline</u> and <i>italics.&nbsp;</i><sup>Superscript</sup> and <sub>subscript</sub> are useful for mathematical (E = mc<sup>2</sup>) or scientific (h<sub>2</sub>O) expressions. Paragraph styles can provide alternative renderings, such as quote sections:</p><blockquote>&quot;<i>Be yourself; everyone else is already taken&quot;</i></blockquote><blockquote>- Oscar Wilde</blockquote>
  2. sling:resourceType: core-components-examples/components/text
  3. textIsRich: true
    
        

    

Bold can be used to emphasize a word or phrase, as can underline and italics. Superscript and subscript are useful for mathematical (E = mc2) or scientific (h2O) expressions. Paragraph styles can provide alternative renderings, such as quote sections:

"Be yourself; everyone else is already taken"
- Oscar Wilde

Lists

Bulleted and numbered lists can be added to the page.

  • List item
  • List item
  • List item
  • List item

 

  1. List Item 1
  2. List Item 2
  3. List item 3
  4. List item 4
  1. text: <ul><li>List item</li><li>List item</li><li>List item</li><li>List item</li></ul><p>&nbsp;</p><ol><li>List Item 1</li><li>List Item 2</li><li>List item 3</li><li>List item 4</li></ol>
  2. sling:resourceType: core-components-examples/components/text
  3. textIsRich: true
    
        

    
  • List item
  • List item
  • List item
  • List item

 

  1. List Item 1
  2. List Item 2
  3. List item 3
  4. List item 4

Table

Table of organized content with six rows and four columns, created using the rich text editor.

Column 1Column 2Column 3Column 4
1.11.21.31.4
2.12.22.32.4
3.13.23.33.4
4.14.24.34.4
5.15.25.25.4
  1. text: <table cellpadding="5" cellspacing="0" border="1"> <tbody><tr><th>Column 1</th> <th>Column 2</th> <th>Column 3</th> <th>Column 4</th> </tr><tr><td>1.1</td> <td>1.2</td> <td>1.3</td> <td>1.4</td> </tr><tr><td>2.1</td> <td>2.2</td> <td>2.3</td> <td>2.4</td> </tr><tr><td>3.1</td> <td>3.2</td> <td>3.3</td> <td>3.4</td> </tr><tr><td>4.1</td> <td>4.2</td> <td>4.3</td> <td>4.4</td> </tr><tr><td>5.1</td> <td>5.2</td> <td>5.2</td> <td>5.4</td> </tr></tbody></table>
  2. sling:resourceType: core-components-examples/components/text
  3. textIsRich: true
    
        

    
Column 1Column 2Column 3Column 4
1.11.21.31.4
2.12.22.32.4
3.13.23.33.4
4.14.24.34.4
5.15.25.25.4