I want to be able to insert a date stamp in a text area at the cursor position.
I started with the code below.
The code doesn’t work unless I use dmx-bind:value instead of dmx-bind:html
<div class="container">
<dmx-value id="var_content" dmx-bind:value="'this is my text'"></dmx-value>
<button id="btn2" class="btn" dmx-on:click="var_content.setValue(var_now_date.datetime.formatDate('dd/MM/yyyy HH:mm')+': '+text1.value)">Button</button>
<textarea id="text1" class="form-control" dmx-bind:html="var_content.value"></textarea>
Is this a bug?