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

How do I support solidjs? Can you implement a slate-solid? #5588

Open
solid-component opened this issue Jan 10, 2024 · 2 comments
Open

How do I support solidjs? Can you implement a slate-solid? #5588

solid-component opened this issue Jan 10, 2024 · 2 comments
Labels

Comments

@solid-component
Copy link

I want to write an editor in solidjs and slate, but slate only has a Slate-React component, can I write a Slate-solid component based on Slate-React?

@adjourn
Copy link
Contributor

adjourn commented Jan 13, 2024

Not really, JSX is where the similarities end..

  • Rendering paradigms couldn't be more different
  • Solid doesn't have synthetic event system on top of native events

You could probably build it on top of slate-react to reuse some of the code but be prepared to rewrite all the components and everything to do with events but.. I'm afraid this is the layer where bulk of the WYSIWYG editor difficulties and bugs are, I would not recommend it as a solo project.

@dylans
Copy link
Collaborator

dylans commented Feb 9, 2024

There's slate-angular as an example of a non-React version of Slate. There's also slate-vue though it is not maintained as far as I can tell.

I wouldn't be opposed to introducing a slate-solid (or other variants) to slate itself, but we really need to add a good test suite for slate-react and anything new.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants