Hoppa till huvudinnehåll

`<sf-text>`

Our most used and most flexible content tag. This element allows rich text editing while maintaining developer control.

Uppdaterad för mer än en vecka sedan

Our most used and most flexible content tag. This element allows rich text editing while maintaining developer control.

Basic Usage

<sf-text id=":1"></sf-text>

Example output:

<h1>Heading</h1>
<p>Some paragraph text here.</p>

Conditional Element Inclusion

Users can restrict available formatting options through the include attribute, limiting choices to specific elements.

<sf-text id=":1" include="p,h1,h2,h3,h4,h5,bold,italic,link,align,bullet,number"></sf-text>

Attributes

Attribute

Description

include

Comma-separated list of permitted elements

value

Sets default content

Available Elements

The tag supports 14 formatting options:

  • p - Paragraphs

  • h1 - Heading 1

  • h2 - Heading 2

  • h3 - Heading 3

  • h4 - Heading 4

  • h5 - Heading 5

  • bold - Bold text

  • italic - Italic text

  • link - Links

  • align - Text alignment

  • bullet - Bullet lists

  • number - Numbered lists

Fick du svar på din fråga?