Use umb-code-snippet component for insert field code snippet

This commit is contained in:
Bjarne Fyrstenborg
2020-06-09 16:09:32 +02:00
committed by Sebastiaan Janssen
parent b8e23ac56f
commit b6f6b1a438
2 changed files with 2 additions and 1 deletions
@@ -18,6 +18,7 @@
justify-content: flex-start;
flex-grow: 1;
padding: 2px 10px;
text-transform: uppercase;
}
button {
@@ -71,7 +71,7 @@
<div class="umb-el-wrap">
<div class="controls">
<label class="control-label"><localize key="templateEditor_outputSample">Output sample</localize></label>
<pre>{{ vm.generateOutputSample() }}</pre>
<umb-code-snippet language="'cshtml'">{{ vm.generateOutputSample() }}</umb-code-snippet>
</div>
</div>
</div>