Skip to content

Link editing example in LinkExtension documentation appears to be broken #2182

Answered by sykesd
sykesd asked this question in Q&A
Discussion options

You must be logged in to vote

After much digging, I think I have found the problem. In the <FloatingLinkToolbar> component, it is necessary to set the renderOutsideEditor property to false on the <FloatingWrapper> when showing the <input>.

Like so:

      <FloatingWrapper
        positioner='always'
        placement='bottom'
        enabled={isEditing}
        renderOutsideEditor={!isEditing}   // <-- Here!
      >
        <DelayAutoFocusInput
       // ... the rest

I got to this by reading the source of the FloatingWrapper component and found the following comment on the property definition:

/**
   * When `true` the child component is rendered outside the `ProseMirror`
   * editor. Set this to `false` when you need t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sykesd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant