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

Try to disable or block the editing anymore #62

Closed
vkcorp opened this issue Sep 29, 2021 · 8 comments
Closed

Try to disable or block the editing anymore #62

vkcorp opened this issue Sep 29, 2021 · 8 comments

Comments

@vkcorp
Copy link

vkcorp commented Sep 29, 2021

Hi, I have one more question while testing.
I want to disable editing and wanna see current work as final,
so tried to block it with disableEdit() like :

        mind.toCenter();
        mind.disableEdit();

But I still can add new child and set new color for my nodes.
Is there anyway to block to edit anymore ?

@SSShooter
Copy link
Owner

it's a bug, I will fix it 🤣

@vkcorp
Copy link
Author

vkcorp commented Sep 30, 2021

Oh I see ! Hope to be fixed soon :)

@SSShooter
Copy link
Owner

fixed ; )

@vkcorp
Copy link
Author

vkcorp commented Oct 1, 2021

Thanks alot for your help !
So I've tested it with 0.16.3, but I can still add new child after setting disableEdit().
I don't knwo what's wrong..

Downloaded it from :
https://cdn.jsdelivr.net/npm/mind-elixir/dist/MindElixir.js

@vkcorp
Copy link
Author

vkcorp commented Oct 1, 2021

Ah, does the disableEdit() valid for only onkeydown and dbclick ?
How about items of context menu ? I tested with clicking a item of menu, "Add child".

@SSShooter
Copy link
Owner

🤣you are right, this is another fault.

@SSShooter SSShooter reopened this Oct 2, 2021
@SSShooter
Copy link
Owner

0.16.4 fixed

@vkcorp
Copy link
Author

vkcorp commented Oct 5, 2021

Thanks 👍 , I will try again !

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

2 participants