mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +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}
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
<form method="POST">
|
<form id="noteFactory" method="POST">
|
||||||
<input type="text" name="name" placeholder="{_name_note}" style="width:603px;" />
|
<input type="text" name="name" placeholder="{_name_note}" style="width:603px;" />
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<textarea name="html" style="display:none;"></textarea>
|
<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();
|
document.querySelector("textarea").value = window._editor.getValue();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue