hunk.code_window:     // When the target is editable, dropping is already allowed by
       // default, and calling `preventDefault` hides the cursor.
       const node = editor.findNode(event.target)
       if (editor.isVoid(node)) {
         event.preventDefault()
       }
       // COMPAT: IE won't call onDrop on contentEditables unless the
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:     if (!node || editor.isVoid(node)) {
  
hunk.file_path: packages/slate-react/src/plugins/dom/before.js
hunk.type: replace
file: /** @jsx h */
  
  import h from 'slate-hyperscript'
  
  export const input = (
    <value>
      <document>
        <block type="paragraph">
          one
          <inline type="link">
            <cursor />two
          </inline>
          three
        </block>
      </document>
    </value>
  )
  
  export const options = {
    preserveSelection: true,
    preserveKeys: true,
  }
  
  export const output = {
    object: 'value',
    document: {
      object: 'document',
      data: {},
      key: '5',
      nodes: [
        {
          object: 'block',
          key: '4',
          type: 'paragraph',
          data: {},
          nodes: [
            {
              object: 'text',
              key: '2',
              text: 'one',
              marks: [],
            },
            {
              object: 'inline',
              key: '1',
              type: 'link',
              data: {},
              nodes: [
                {
                  object: 'text',
                  key: '0',
                  text: 'two',
                  marks: [],
                },
              ],
            },
            {
              object: 'text',
              key: '3',
              text: 'three',
              marks: [],
            },
          ],
        },
      ],
    },
    selection: {
      object: 'selection',
      anchor: {
        object: 'point',
        key: '0',
        path: [0, 1, 0],
        offset: 0,
      },
      focus: {
        object: 'point',
        key: '0',
        path: [0, 1, 0],
        offset: 0,
      },
      isFocused: true,
      marks: null,
    },
  }
  