Fix note creation

This commit is contained in:
Alma Armas 2020-10-04 06:51:43 -07:00
parent 9c0a0e4c3e
commit efa031bcca

View file

@ -7,7 +7,7 @@
{/block}
{block content}
<form method="POST">
<form id="noteFactory" method="POST">
<input type="text" name="name" placeholder="{_name_note}" style="width:603px;" />
<br/><br/>
<textarea name="html" style="display:none;"></textarea>
@ -35,7 +35,7 @@
});
});
document.querySelector("form").addEventListener("submit", function() {
document.querySelector("#noteFactory").addEventListener("submit", function() {
document.querySelector("textarea").value = window._editor.getValue();
});
</script>