Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nodes/Table.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nodes/Table.js b/src/nodes/Table.js
index 31c9e5b61..f2748d5f9 100644
--- a/src/nodes/Table.js
+++ b/src/nodes/Table.js
@@ -84,6 +84,7 @@ export default Table.extend({
return {
...this.parent(),
insertTable: () => ({ tr, dispatch, editor }) => {
+ if (isInTable(tr)) return false
const node = createTable(editor.schema, 3, 3, true)
if (dispatch) {
const offset = tr.selection.anchor + 1