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

schema fixes

parent 09fe9226
No related branches found
No related tags found
1 merge request!107Tracked transaction
......@@ -26,7 +26,7 @@ const comment = {
{
class: hook.node.attrs.class,
"data-id": hook.node.attrs.id,
"data-track": JSON.stringify(hook.node.attrs.track),
"data-conversation": JSON.stringify(hook.node.attrs.conversation),
"data-group": hook.node.attrs.group
}
];
......
import { SchemaHelpers } from "wax-prosemirror-utilities";
const format_change = {
attrs: {
class: { default: "format-change" },
......@@ -21,8 +23,8 @@ const format_change = {
user: parseInt(hook.dom.dataset.user),
username: hook.dom.dataset.username,
date: parseInt(hook.dom.dataset.date),
before: parseFormatList(hook.dom.dataset.before),
after: parseFormatList(hook.dom.dataset.after),
before: SchemaHelpers.parseFormatList(hook.dom.dataset.before),
after: SchemaHelpers.parseFormatList(hook.dom.dataset.after),
group: hook.dom.dataset.group
});
next();
......
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