Former-commit-id: 32c9fe029f5bda9d59c9c2188d86d0bc5bbbcc88
This commit is contained in:
Fábio Ferreira
2017-01-02 20:27:44 +00:00
4 changed files with 132 additions and 15 deletions

View File

@@ -4,8 +4,9 @@ var editor = {};
editor.textareaAutoGrow = function() {
let autogrow = function() {
this.style.height = '5px';
this.style.height = this.scrollHeight + 'px';
console.log(this.style.height)
this.style.height = 'auto';
this.style.height = (this.scrollHeight) + 'px';
}
let textareas = document.getElementsByTagName('textarea');
@@ -97,11 +98,11 @@ function addFrontMatterItemPrompt(parent) {
if (type == "array" || type == "object") {
if (parent.dataset.type == "parent") {
makeFromBaseTemplate(bid, newtype, name, document.querySelector('.frontmatter'));
makeFromBaseTemplate(id, type, name, document.querySelector('.frontmatter'));
return;
}
makeFromBaseTemplate(bid, newtype, name, block);
makeFromBaseTemplate(id, type, name, block);
return;
}