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

Is there a way to "lock" the nodes in place? #172

Closed
MSoup opened this issue Dec 15, 2021 · 3 comments
Closed

Is there a way to "lock" the nodes in place? #172

MSoup opened this issue Dec 15, 2021 · 3 comments
Assignees

Comments

@MSoup
Copy link

MSoup commented Dec 15, 2021

I'm sorry if I didn't read enough. I'm looking for a way to freeze all the nodes in place. This will be particularly helpful when navigating a page with a lot of nodes. I haven't been able to figure out a solution myself yet.

@newcat
Copy link
Owner

newcat commented Dec 21, 2021

Sorry for taking so long to respond. There is no real way to do this yet. I might be able to introduce a preventable event for moving nodes, will check that.

@newcat newcat self-assigned this Dec 21, 2021
@LukasLoeffler
Copy link
Contributor

@MSoup What do you mean by freezing all nodes?
Lock all nodes in place while the editor itself is movable?

@newcat newcat mentioned this issue Mar 8, 2022
newcat added a commit that referenced this issue May 21, 2022
@newcat
Copy link
Owner

newcat commented May 21, 2022

Implemented in v1.10.0:

viewPlugin.events.beforeNodeMove.addListener(..., () => false)

@newcat newcat closed this as completed May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants