Skip to content
Snippets Groups Projects

enable insertions, deletions on codeblock

Merged Christos requested to merge track-improvments into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -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;