This commit is contained in:
Fábio Ferreira committed 2017-01-02 20:27:44 +00:00
commit 32c9fe029f
4 files changed
+132 -15

No files matched your search

+5 -4
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;
}