mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-13 23:41:00 +00:00
7 lines
306 B
JavaScript
7 lines
306 B
JavaScript
const articleContent = document.querySelector('#plume-editor')
|
|
const offset = articleContent.offsetHeight - articleContent.clientHeight
|
|
|
|
articleContent.addEventListener('keydown', () => {
|
|
articleContent.style.height = 'auto'
|
|
articleContent.style.height = `${articleContent.scrollHeight - offset}px`
|
|
})
|