mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Fix note creation
This commit is contained in:
parent
9c0a0e4c3e
commit
efa031bcca
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue