Skip to content

Commit 97e3309

Browse files
author
Quan Weiwei
committed
fix var editor bug
1 parent 49a11bb commit 97e3309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/views/Form/tuieditor_widget.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<script>
2525
editor_{{ id }}.on("change",function(){
26-
document.querySelector('textarea#{{ id }}').innerHTML = {% if config.to_html is defined and config.to_html == true %}editor.getHtml(){% else %}editor.getMarkdown(){% endif %};
26+
document.querySelector('textarea#{{ id }}').innerHTML = {% if config.to_html is defined and config.to_html == true %}editor_{{ id }}.getHtml(){% else %}editor_{{ id }}.getMarkdown(){% endif %};
2727
});
2828
</script>
2929

0 commit comments

Comments
 (0)