2018-10-30 17:16:24 +00:00
|
|
|
const articleContent = document.querySelector('#plume-editor')
|
|
|
|
const offset = articleContent.offsetHeight - articleContent.clientHeight
|
2018-08-30 20:47:25 +00:00
|
|
|
|
2018-10-30 17:16:24 +00:00
|
|
|
articleContent.addEventListener('keydown', () => {
|
|
|
|
articleContent.style.height = 'auto'
|
|
|
|
articleContent.style.height = `${articleContent.scrollHeight - offset}px`
|
|
|
|
})
|