forked from UKSOURCE/cms.hailearning.edu.vn
feat: standardize admin form limits and guidance
This commit is contained in:
@@ -165,9 +165,7 @@
|
||||
<textarea class="form-control" id="excerpt" name="excerpt" rows="3"
|
||||
required maxlength="500"
|
||||
placeholder="Enter a brief summary of the blog post (max 500 characters)"></textarea>
|
||||
<div class="form-text">
|
||||
<span id="excerptCount">0</span>/500 characters
|
||||
</div>
|
||||
<div class="form-text">Maximum 500 characters.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -470,14 +468,6 @@
|
||||
console.error('Error initializing contentAfterQuote editor:', error);
|
||||
}
|
||||
|
||||
// Excerpt character counter
|
||||
const excerptInput = document.getElementById('excerpt');
|
||||
const excerptCount = document.getElementById('excerptCount');
|
||||
|
||||
excerptInput.addEventListener('input', function () {
|
||||
excerptCount.textContent = this.value.length;
|
||||
});
|
||||
|
||||
// Image upload handler
|
||||
document.querySelectorAll('.btn-upload-image').forEach(button => {
|
||||
button.addEventListener('click', function () {
|
||||
@@ -1062,4 +1052,4 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user