“Default value” field doesn’t work with “Code Editor” control type
-
Plain text will render properly as the default value. But if you attempt to input an html script tag as the default, it won’t show-up.
Here’s how to reproduce the problem:
1) Create a new lazyblock
2) Add a Content Control of type: Code Editor
3) Add a Default value which contains an html script tag:
<script>console.log(‘potato’);</script>
4) Save
5) Add the new block to a Page, and the default value will fail to display.In general, other html tags don’t appear to render either.
If you were to input a default value of:
“<p> This is a potato test </p>”The default value will display as “this is a potato test”. All of the html scripting appears to be stripped-away.
I would assume this is undesired behavior from a Control type called “Code Editor”.
I’m looking for either a workaround, or a bug report. Thanks!
The topic ‘“Default value” field doesn’t work with “Code Editor” control type’ is closed to new replies.