2026-05-03_14-37-33Z_Sunday #104 shownotes must be provided
This commit is contained in:
@@ -371,6 +371,16 @@ include 'header.php';
|
||||
}
|
||||
|
||||
const form = document.querySelector('form');
|
||||
|
||||
form.addEventListener('submit', function (event) {
|
||||
const text = quill.getText().trim();
|
||||
|
||||
if (text.length < 30) {
|
||||
event.preventDefault();
|
||||
alert('You must provide shownotes');
|
||||
}
|
||||
});
|
||||
|
||||
form.addEventListener('formdata', event => {
|
||||
const rawHTML = quill.getSemanticHTML();
|
||||
const prettyHTML = prettyPrintHTML(rawHTML);
|
||||
|
||||
Reference in New Issue
Block a user