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
Description
A clear and concise description of what the bug is.
Slate inline link node is appearing next to text despite copying and pasting code from example.
Recording
A GIF or video showing the issue happening. (If you don't include this, there's a very good chance your issue will be closed, because it's much too hard to figure out exactly what is going wrong, and it makes maintenance much harder.)
Expectation
A clear and concise description of what you expected to happen. (Often it's helpful to test out the behavior of other editors like Google Docs, Medium, Notion, etc. to see how they handle the same issue.)
For text to be replaced by link
Environment
Slate Version: [e.g. 0.59]
Operating System: [e.g. iOS]
Browser: [e.g. Chrome, Safari]
TypeScript Version: [e.g. 3.9.7 - required only if it's a TypeScript issue]
Context
Add any other context about the problem here. (The fastest way to have an issue fixed is to create a pull request with working, tested code and we'll help merge it. Slate is solving a pretty complex problem, and we can't do it without active contributors, so thank you so much for your help!)
The text was updated successfully, but these errors were encountered:
it now seem to work after pasting more of your code from example. I still don't understand why previous code dont work. still would be worth taking a look @ianstormtaylor
After looking into it, I found that the problem isn't with Slate itself but rather with how the Link element is being rendered in your setup. The JSON structure and editor behavior are correct, but when neither the https:// nor mailto: conditions are met, the children get rendered twice.
Description
A clear and concise description of what the bug is.
Slate inline link node is appearing next to text despite copying and pasting code from example.
Recording
A GIF or video showing the issue happening. (If you don't include this, there's a very good chance your issue will be closed, because it's much too hard to figure out exactly what is going wrong, and it makes maintenance much harder.)
Sandbox
A link to a sandbox where the error can be reproduced. (You can start from the base sandbox here: https://codesandbox.io/s/slate-reproductions-c7gyg or refer to the Slate website too.)
Reproduce sandbox: https://codesandbox.io/p/sandbox/slate-reproductions-forked-sq4gcf
Steps
To reproduce the behavior:
Expectation
A clear and concise description of what you expected to happen. (Often it's helpful to test out the behavior of other editors like Google Docs, Medium, Notion, etc. to see how they handle the same issue.)
For text to be replaced by link
Environment
Context
Add any other context about the problem here. (The fastest way to have an issue fixed is to create a pull request with working, tested code and we'll help merge it. Slate is solving a pretty complex problem, and we can't do it without active contributors, so thank you so much for your help!)
The text was updated successfully, but these errors were encountered: