Skip to content
Snippets Groups Projects
Commit 3ef41380 authored by chris's avatar chris
Browse files

keep content in note for now

parent d5c6c8e7
No related branches found
No related tags found
1 merge request!168Fix rerender notes
......@@ -40,6 +40,12 @@ const user = {
username: 'demo',
};
function decodeHtml(html) {
var txt = document.createElement('textarea');
txt.innerHTML = html;
return txt.value;
}
const Editoria = () => (
<Fragment>
<GlobalStyle />
......
......@@ -31,8 +31,7 @@ const footnote = {
id: { default: '' },
},
toDOM: node => {
console.log(getHTMLString(node));
return ['footnote', node.attrs];
return ['footnote', node.attrs, 0];
},
parseDOM: [
{
......
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