diff --git a/_embed/public/js/editor.js b/_embed/public/js/editor.js index f4b52df5..2c3b509d 100644 --- a/_embed/public/js/editor.js +++ b/_embed/public/js/editor.js @@ -41,18 +41,17 @@ function addFrontMatterItem(event) { let fieldID = id + "[]", input = fieldID, count = block.querySelectorAll('.group > div').length; - + input = input.replace(/\[/, '\\['); input = input.replace(/\]/, '\\]'); let fieldsets = block.getElementsByTagName("fieldset"); if (fieldsets.length > 0) { - let newtype = fieldsets[0].dataset.type; - let bid = id + "[" + fieldsets.length + "]"; - let name = fieldsets.length; - - let template = `