Merge branch 'master' of https://github.com/Plume-org/Plume into mobile-menu

This commit is contained in:
Madeorsk
2018-09-01 16:12:11 +02:00
75 changed files with 3662 additions and 745 deletions
+14
View File
@@ -0,0 +1,14 @@
function autosize(){
const el = this;
el.style.height = 'auto';
el.style.height = (el.scrollHeight ) + 'px';
}
const articleContent = document.querySelector('#content');
let offset = 0;
let style = window.getComputedStyle(articleContent, null);
offset += parseInt(style['paddingTop']) + parseInt(style['paddingBottom']);
autosize.bind(articleContent)();
articleContent.addEventListener('keyup', autosize);