-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
I'm working on converting lexical into an es6 module + webcomponent. I've been able to successfully bundle an es6 module (using webpack). Using it as a top-level component in the HTML document root works, but including it as a webcomponent doesn't.
Lexical version: 0.25
Steps To Reproduce
- import a bundled
lexical.bundle.min.jsfile - bind Lexical to an editor in the root DOM (ie. document.getElementById("editor")), and observe that it works
- bind Lexical to an editor in the shadow DOM (this.shadowRoot.querySelector("#editor"), and observe that it doesn't work.
- The shadow dom's editor does receive attributes for
data-lexical-editor=trueamong others - The shadow dom does not receive key inputs
Link to code example:
Screen.Recording.2022-05-09.at.12.53.07.PM.mov
https://github.com/yuzuquats/lexical-web-component
Any help would be appreciated! I'm fairly new to npm so if there's anything obvious I'm missing I'd love to learn!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels