tiptap icon indicating copy to clipboard operation
tiptap copied to clipboard

Youtube embed is not focused through mouse click

Open SarathSantoshDamaraju opened this issue 1 year ago • 1 comments

What’s the bug you are facing?

Embedded youtube video dont get ProseMirror-selectednode when clicked with mouse. But does when navigates and focused with keyboard.

Which browser was this experienced in? Are any special extensions installed?

Almost all recent browser versions

How can we reproduce the bug on our side?

  1. Setup the youtube extension
  2. Try to focus it on clicking

Can you provide a CodeSandbox?

https://codesandbox.io/s/hardcore-burnell-u9nqor?file=/src/App.vue

What did you expect to happen?

When i click on the embed video, i'd expect it to auto play (as it does now) and gets focused. Because i want to provide an EDIT link details options to users. If this doesn't get focused on mouse, there is no way to show the active state or provide edit option.

Anything to add? (optional)

No response

Did you update your dependencies?

  • [X] Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • [ ] Yes, I’m a sponsor. 💖

SarathSantoshDamaraju avatar Aug 01 '22 06:08 SarathSantoshDamaraju

one simpler work around is to defined

.ProseMirror iframe {
  pointer-events: none
}

But this should be provided as an option in the config of the plugin

SarathSantoshDamaraju avatar Aug 02 '22 12:08 SarathSantoshDamaraju

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jan 16 '23 00:01 github-actions[bot]