Commit 5a7ce91f authored by Frank Bessou's avatar Frank Bessou 💭
Browse files

fix: parse editorjs content from textarea.value instead of innerHTML

The innerHTML seems to be escaped.
parent ebb1bbf8b496
......@@ -53,7 +53,7 @@ function initEditorjs() {
};
if (node.innerHTML !== "") {
try {
editorJsConfig.data = JSON.parse(node.innerHTML);
editorJsConfig.data = JSON.parse(node.value);
} catch (e) {
console.error(
"Existing content for editor.js init data is not a valid JSON. See DOM node",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment