aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-08-27 23:36:01 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-08-27 23:36:01 -0400
commit3dba9c0fdaaaa65339190aa0126b3b1cf1b2ffa1 (patch)
tree785a3699339cc90197c2fa24fe0d0fce592b1e17 /src
parent1fbf7d7e10bb4dfa7e3a323ee0641d7bbf97b6a8 (diff)
from last
Diffstat (limited to 'src')
-rw-r--r--src/client/util/ProsemirrorExampleTransfer.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/util/ProsemirrorExampleTransfer.ts b/src/client/util/ProsemirrorExampleTransfer.ts
index 12ad28199..3979d8a49 100644
--- a/src/client/util/ProsemirrorExampleTransfer.ts
+++ b/src/client/util/ProsemirrorExampleTransfer.ts
@@ -111,8 +111,9 @@ export default function buildKeymap<S extends Schema<any>>(schema: S, mapKeys?:
break;
}
}
- marks && tx2.ensureMarks([...marks]);
- marks && tx2.setStoredMarks([...marks]);
+ // when promoting to a list, assume list will format things so don't copy the stored marks.
+ // marks && tx2.ensureMarks([...marks]);
+ // marks && tx2.setStoredMarks([...marks]);
dispatch(tx2);
})) {