Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialogs don't work inside Shadow DOM #866

Closed
eemorozov opened this issue Jul 12, 2022 · 0 comments
Closed

Dialogs don't work inside Shadow DOM #866

eemorozov opened this issue Jul 12, 2022 · 0 comments

Comments

@eemorozov
Copy link

eemorozov commented Jul 12, 2022

Jodit Version: 3.18.9

Browser: Chrome/FF
OS: Windows
Is React App: True

Code
CodeSandbox

Expected behavior:
If you try to copy styled text from some site and paste it in editor, "Paste as HTML" Dialog should be shown inside Shadow DOM.

Actual behavior:
Dialog is rendered inside body (instead of Shadow DOM root) without styles.
The reason is in Dialog "destination"

return this.od.body;

I made CodeSandbox example where "destination" property has been patched with shadow root - it's worked as expected.
So we should consider there "shadowRoot" option from config.

@xdan xdan added the bug label Aug 11, 2022
xdan added a commit that referenced this issue Aug 14, 2022
xdan added a commit that referenced this issue Aug 14, 2022
@xdan xdan added the fixed label Aug 14, 2022
@xdan xdan closed this as completed Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants