You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot of components (plugins?) lacking from the Lexical Playground to the Playground in this library. For example, I'm missing the text color, and a lot of the "Insert" things, like inserting a tweet or a YouTube video.
When some users have asked, you told them that you can guide them: #48 (comment)
Maybe you could write very fast a mini-guide on how to port components from there to here, like:
1- Look for a file called xxx. You must create a file here in this directory with a similar content, but with the output for Svelte.
2- Look for the node creator in a file called yyy. You must create a file here in this other directory with blablablá.
That could help me and others send you PRs for new components/plugins.
Thanks!
The text was updated successfully, but these errors were encountered:
ktecho
changed the title
How to implement more plugin
How to implement more components / plugins
Jan 24, 2024
Next, we have to port these files from react to svelte and place them in the following folder in the svelte-lexical project: svelte-lexical/packages/svelte-lexical/src/core/plugins/<componentName>
Last step is to include the Node and Plugin of the new component into the RichTextComposer (svelte-lexical/packages/svelte-lexical/src/components/richtext/RichTextComposer.svelte).
Hope it helps. Feel free to reach out to me if you need any support. Looking forward to your PRs. :)
Hey @umaranis
There are a lot of components (plugins?) lacking from the Lexical Playground to the Playground in this library. For example, I'm missing the text color, and a lot of the "Insert" things, like inserting a tweet or a YouTube video.
When some users have asked, you told them that you can guide them: #48 (comment)
Maybe you could write very fast a mini-guide on how to port components from there to here, like:
1- Look for a file called xxx. You must create a file here in this directory with a similar content, but with the output for Svelte.
2- Look for the node creator in a file called yyy. You must create a file here in this other directory with blablablá.
That could help me and others send you PRs for new components/plugins.
Thanks!
The text was updated successfully, but these errors were encountered: