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

find cases

parent 6c73dc11
No related branches found
No related tags found
1 merge request!541Image track
......@@ -20,6 +20,9 @@ const markDeletion = (tr, from, to, user, date, group, viewId) => {
if (node.type.name.includes('table')) {
return;
}
if (node.type.name === 'figure') {
console.log('delete figure');
}
if (
node.isInline &&
node.marks.find(
......
......@@ -54,6 +54,9 @@ const markInsertion = (tr, from, to, user, date, group, viewId) => {
// A table was inserted. We don't add track marks to elements inside of it.
return false;
}
if (node.type.name === 'figure') {
// TODO delete placeholder
}
});
};
......
......@@ -30,7 +30,7 @@ const trackedTransaction = (
}
}
}
console.log('up', tr);
console.log(tr);
if (
!tr.steps.length ||
(tr.meta &&
......@@ -46,7 +46,7 @@ const trackedTransaction = (
const newTr = state.tr;
const map = new Mapping();
const date = Math.floor(Date.now());
console.log(tr);
tr.steps.forEach((originalStep, originalStepIndex) => {
const step = originalStep.map(map);
const { doc } = newTr;
......
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