Closed plitokpikin closed 2 years ago
can you share the Element and Leaf components you are using? my guess is that this is using https://github.com/nathanfaucett/svelte-slate/blob/main/src/lib/components/Element.svelte and https://github.com/nathanfaucett/svelte-slate/blob/main/src/lib/components/Leaf.svelte which are the internal renderers for the elements, the Editable takes components like the ones here https://github.com/nathanfaucett/svelte-slate/blob/main/src/example/Element.svelte and https://github.com/nathanfaucett/svelte-slate/blob/main/src/example/Leaf.svelte, if this is the case it might make sense to rename those internal components
True, I'm importing the src/lib
components, as opposed to src/example
ones.
The thing is, only src/lib
components are exposed in the package, the src/example
folder is not included at all.
yeah I think I will change the names of the internal components for now, the examples are really just for reference so you can write your own
closing this issue as it is not a bug but an issue of poor naming, renamed in https://github.com/nathanfaucett/svelte-slate/commit/8db1c5aeb48bbd78e586dab094ce040803ac51d1
The code is basic: