Why does the gapcursor not show below code block?

I noticed that the gapcursor is not showing up below a code block which is basically a <pre> tag. the schema is as follows:

  code_block: {
    content: 'text*',
    marks: '',
    group: 'block',
    code: true,
    defining: true,
    parseDOM: [{tag: 'pre', preserveWhitespace: 'full'}],
    toDOM() {
      return ['pre', 0]
    },
  },

i tried adding allowGapCursor: true to the spec above but did not make a difference.

Because it is defined to only show up in places where you can’t place a cursor nearby, and you can place your cursor in a code block.

1 Like

oh i see. thank you for the clarification!