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

add comment

parent 335ffdca
No related branches found
No related tags found
1 merge request!144enable insertions, deletions on codeblock
This commit is part of merge request !144. Comments created here will be created in the context of that merge request.
......@@ -14,9 +14,10 @@ import addMarkStep from './helpers/addMarkStep';
import removeMarkStep from './helpers/removeMarkStep';
const trackedTransaction = (tr, state, user) => {
// Don't track table operations
if (!tr.selectionSet) {
const $pos = state.selection.$anchor;
for (let { depth } = $pos; depth > 0; depth--) {
for (let { depth } = $pos; depth > 0; depth -= 1) {
const node = $pos.node(depth);
if (node.type.spec.tableRole === 'table') {
return tr;
......
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