| 1525 | textarea.value = String(contentEditable ? bro[0].innerText : bro.val()); | 1525 | textarea.value = String(contentEditable ? bro[0].innerText : bro.val()); |
| 1526 | textarea.classList.add('height100p', 'wide100p', 'maximized_textarea'); | 1526 | textarea.classList.add('height100p', 'wide100p', 'maximized_textarea'); |
| 1527 | bro.hasClass('monospace') && textarea.classList.add('monospace'); | 1527 | bro.hasClass('monospace') && textarea.classList.add('monospace'); |
| 1528 | if (power_user.enable_md_hotkeys && bro.hasClass('mdHotkeys')) { | 1528 | bro.hasClass('mdHotkeys') && textarea.classList.add('mdHotkeys'); |
| 1529 | textarea.classList.add('mdHotkeys'); | | |
| 1530 | const mdIcon = document.createElement('i'); | | |
| 1531 | mdIcon.classList.add('fa-brands', 'fa-markdown', 'mdhotkey_icon', 'alignSelfStart'); | | |
| 1532 | wrapper.appendChild(mdIcon); | | |
| 1533 | } | | |
| 1534 | textarea.addEventListener('input', function () { | 1529 | textarea.addEventListener('input', function () { |
| 1535 | if (contentEditable) { | 1530 | if (contentEditable) { |
| 1536 | bro[0].innerText = textarea.value; | 1531 | bro[0].innerText = textarea.value; |