try to solve nested drag handles

This commit is contained in:
Philipp Kühn
2020-11-24 21:50:54 +01:00
parent f4368f9021
commit d938979584
4 changed files with 45 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
<template>
<node-view-wrapper>
<node-view-wrapper style="padding-left: 1rem">
<button @click="toggleChecked" contenteditable="false">
toggle checked
</button>

View File

@@ -7,11 +7,12 @@ export default Node.create({
group: 'block',
content: 'inline*',
// content: 'inline*',
content: 'block*',
draggable: true,
selectable: false,
selectable: true,
addAttributes() {
return {

View File

@@ -36,7 +36,10 @@ export default {
content: `
<p>paragraph</p>
<div data-type="test">
text
one
<div data-type="test">
two
</div>
</div>
<p>paragraph</p>
`,