diff --git a/app/static/js/fillword.js b/app/static/js/fillword.js index 421d972..111027a 100644 --- a/app/static/js/fillword.js +++ b/app/static/js/fillword.js @@ -8,7 +8,13 @@ function getWord() { function fillInWord() { let word = getWord(); if (isRead) Reader.read(word, inputSlider.value); - if (!isChoose) return; + if (!isChoose) { + if(isHighlight){ + const element = document.getElementById("selected-words3"); + element.value = element.value + " " + word; + } + return; + } const element = document.getElementById("selected-words"); localStorage.setItem('nowWords', element.value); element.value = element.value + " " + word;