Text Tag
The Text tag represents the Text editor in Edit mode and the content from the editor in Preview mode and on a published page.
See also
Read also the Text editor article.
<imcms:text index="1"/>
Available list of tag attributes:
Attribute |
Type |
Description |
---|---|---|
no |
Integer |
id of the current text (deprecated version). |
index |
Integer |
id of the current text (recommended version). |
document |
Integer |
id of the document from which to take the text. This text cannot be changed on this page. |
placeholder |
String |
the text to show if there is no content. |
label |
String |
the text editor title (visible to the admin). |
showlabel |
Boolean |
true (default) - show the label, false - don’t show label. |
mode |
String |
Possible values:
|
formats |
String |
Possible values:
|
pre |
String |
text or html before the content (if the content is not empty). |
post |
String |
text or html after the content (if the content is not empty). |
showEditToSuperAdmin |
String |
text editor visibility in Edit mode only for superadmin. |
showMode |
String |
Possible values:
|
Warning
Text tag must have no
or index
attribute!
Usage example
<imcms:text index="1" mode="read"/>
<imcms:text index="1" mode="write" showEditToSuperAdmin="true"/>
<imcms:text index="2" document="1001" placeholder="<i>this text is empty</i>" label="Test text tag" showlabel="true"/>
<imcms:text index="3" document="1001" pre="<div>" post="</div>" formats="html" showMode="small"/>