diff options
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/view/js/main.js b/view/js/main.js index cfdd82315..43f0333ed 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1729,42 +1729,6 @@ function loadText(textRegion,data) { $(textRegion).val(currentText + data); } -function addeditortext(data) { - if(plaintext == 'none') { - var currentText = $("#profile-jot-text").val(); - $("#profile-jot-text").val(currentText + data); - } -} - -// Add text to active comment region if set, otherwise add to main editor -function addActiveEditorText(data) { - if (activeCommentID) { - const textarea = document.getElementById('comment-edit-text-' + activeCommentID); - - if (textarea) { - let currentText = textarea.value; - - // Clear the textarea if it matches the active comment text - if (currentText === activeCommentText) { - currentText = ''; - } - - textarea.classList.add('expanded'); - openMenu('comment-tools-' + activeCommentID); - textarea.value = currentText + data; - textarea.focus(); - textarea.click(); - preview_comment(activeCommentID); - } - - // Reset activeCommentID after processing - activeCommentID = 0; - } else { - addeditortext(data); - preview_post(); - } -} - function makeid(length) { var result = ''; var characters = 'abcdef0123456789'; |