firstcommit
This commit is contained in:
15
resources/js/backend/textarea_content_display.js
Normal file
15
resources/js/backend/textarea_content_display.js
Normal file
@@ -0,0 +1,15 @@
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
var mainTextarea = document.getElementById('mainTextarea');
|
||||
var editorTextarea = document.getElementById('editorTextarea');
|
||||
|
||||
// If exist then copy from main_textarea to editor_testarea
|
||||
if (mainTextarea && editorTextarea) {
|
||||
editorTextarea.value = mainTextarea.value;
|
||||
}
|
||||
|
||||
// Hide the original textarea
|
||||
if (mainTextarea) {
|
||||
mainTextarea.style.display = 'none';
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user