-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
this.document.getPreviousInline is not a function #1794
Comments
seems like slate/packages/slate/src/models/value.js Lines 472 to 490 in 9e50bc6
previousInline nor nextInline in the Slate codebase itself. unless we want to implement getPreviousInline and getNextInline on document
|
Open to a PR that adds those two. |
4 tasks
Closed
As of #3093 (which was just merged), I believe this issue is no longer applicable, because a lot has changed. I'm going through and closing out any potential issues that are not out of date with the overhaul. Thanks for understanding. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
bug
What's the current behavior?
When calling
value.previousInline
, and error gets thrown becausethis.document.getPreviousInline
is not a functionfiddle: https://jsfiddle.net/qmxu8ocy/ (type anything)
OS: mac
browser: Chrome
slate version: 0.33.4
What's the expected behavior?
It would return the previous inline if it existed.
I'm getting around it right now by using
value.document.getPreviousSibling
and checking if it's inline or not. I looked through history and I'm not sure thatgetPreviousInline
ever existed 🤷♂️The text was updated successfully, but these errors were encountered: