-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js instances #1511
Merged
neSpecc
merged 4 commits into
codex-team:next
from
hata6502:bugfix/fix-set-current-block-by-child-node-for-multiple-editorjs
Feb 17, 2021
Merged
Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js instances #1511
neSpecc
merged 4 commits into
codex-team:next
from
hata6502:bugfix/fix-set-current-block-by-child-node-for-multiple-editorjs
Feb 17, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hata6502
commented
Jan 25, 2021
* @type {number} | ||
*/ | ||
this.currentBlockIndex = this._blocks.nodes.indexOf(parentFirstLevelBlock as HTMLElement); | ||
if (!parentFirstLevelBlock?.closest(`.${this.Editor.UI.CSS.editorWrapper}`)?.isEqualNode(this.Editor.UI.nodes.wrapper)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support multiple Editor.js instances, by checking the equality between this.Editor.UI.CSS.editorWrapper
and this.Editor.UI.nodes.wrapper
.
hata6502
requested review from
gohabereg,
khaydarov and
neSpecc
as code owners
January 25, 2021 12:14
gohabereg
approved these changes
Jan 26, 2021
robonetphy
approved these changes
Jan 28, 2021
To Test PR we can use the following code:
|
khaydarov
approved these changes
Feb 15, 2021
neSpecc
approved these changes
Feb 17, 2021
Thanks, @hata6502 |
hata6502
deleted the
bugfix/fix-set-current-block-by-child-node-for-multiple-editorjs
branch
February 17, 2021 15:03
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#1503