Code Editor Examples
vce-code-editor [single-line]
<vce-code-editor single-line>
<vce-html-editor
html="imageUrl"
mode="null"
editor="true"
class="e-input e-inputgroup__item e-inputgroup__item-fluid e-inputgroup__item-first"
placeholder="campaign.placeholders.cardImageUrl"
>
</vce-html-editor>
</vce-code-editor>
vce-code-editor with personalization plugin
<vce-code-editor>
<vce-code-editor-toolbar>
<vce-code-editor-toolbar-item text-to-insert="Hello" label="Hello" icon="bell" />
<vce-code-editor-toolbar-item text-to-insert="World" label="World" icon="bolt" />
<vce-code-editor-toolbar-item text-to-insert="!" label="!" icon="exclamation" />
<vce-code-editor-toolbar-personalization-prompt label="Prompt" />
</vce-code-editor-toolbar>
<vce-html-editor
html="Content in the editor"
mode="null"
editor="true"
class="e-input e-inputgroup__item e-inputgroup__item-fluid e-inputgroup__item-first"
placeholder="Placeholder text"
>
<vce-html-editor-personalization-plugin>
</vce-html-editor>
</vce-code-editor>
vce-code-editor single line with personalization
<vce-code-editor single-line>
<vce-code-editor-toolbar>
<vce-code-editor-toolbar-item text-to-insert="Hello" label="Hello" icon="bell" />
<vce-code-editor-toolbar-item text-to-insert="World" label="World" icon="bolt" />
<vce-code-editor-toolbar-item text-to-insert="!" label="!" icon="exclamation" />
<vce-code-editor-toolbar-personalization-prompt label="Prompt" />
</vce-code-editor-toolbar>
<vce-html-editor
html="Content in the editor"
mode="null"
editor="true"
class="e-input e-inputgroup__item e-inputgroup__item-fluid e-inputgroup__item-first"
placeholder="Placeholder text"
>
<vce-html-editor-personalization-plugin>
</vce-html-editor>
</vce-code-editor>
vce-code-editor disabled with personalization plugin
<vce-code-editor disabled>
<vce-code-editor-toolbar>
<vce-code-editor-toolbar-item text-to-insert="Hello" label="Hello" icon="bell" />
<vce-code-editor-toolbar-item text-to-insert="World" label="World" icon="bolt" />
<vce-code-editor-toolbar-item text-to-insert="!" label="!" icon="exclamation" />
<vce-code-editor-toolbar-personalization-prompt label="Prompt" />
</vce-code-editor-toolbar>
<vce-html-editor
html="Content in the editor"
mode="null"
editor="true"
class="e-input e-inputgroup__item e-inputgroup__item-fluid e-inputgroup__item-first"
placeholder="Placeholder text"
>
<vce-html-editor-personalization-plugin>
</vce-html-editor>
</vce-code-editor>
vce-code-editor disabled single line with personalization plugin
<vce-code-editor disabled single-line>
<vce-code-editor-toolbar>
<vce-code-editor-toolbar-item text-to-insert="Hello" label="Hello" icon="bell" />
<vce-code-editor-toolbar-item text-to-insert="World" label="World" icon="bolt" />
<vce-code-editor-toolbar-item text-to-insert="!" label="!" icon="exclamation" />
<vce-code-editor-toolbar-personalization-prompt label="Prompt" />
</vce-code-editor-toolbar>
<vce-html-editor
html="Content in the editor"
mode="null"
editor="true"
class="e-input e-inputgroup__item e-inputgroup__item-fluid e-inputgroup__item-first"
placeholder="Placeholder text"
>
<vce-html-editor-personalization-plugin>
</vce-html-editor>
</vce-code-editor>
vce-code-editor with personalization drag and drop
<vce-token
name="tokenOne"
data="string data for token one"
>
</vce-token>
<vce-token
name="tokenTwo"
data="string data for token two"
>
</vce-token>
<hr/>
<vce-code-editor >
<vce-html-editor
html="'Example Text with example token {{ contact.69 }}"
mode="null"
editor="true"
class="e-input e-inputgroup__item e-inputgroup__item-fluid e-inputgroup__item-first"
placeholder="Placeholder text"
>
<vce-html-editor-personalization-plugin></vce-html-editor-personalization-plugin>
</vce-html-editor>
</vce-code-editor>
vce-code-editor-twig-validator
Combine with vce-code-editor-validation-status-display
<vce-code-editor>
<vce-code-editor-validation-status-display validation-status-display>
<vce-code-editor-twig-validator twig-validator validation-url="http://example.com">
<vce-html-editor
html="Example text with example token"
mode="null"
editor="true"
class="e-input e-inputgroup__item e-inputgroup__item-fluid e-inputgroup__item-first"
placeholder="Placeholder text"
>
<vce-html-editor-personalization-plugin>
</vce-html-editor>
</vce-code-editor>