<Editor enabled={false} doesn't disable dragging
See original GitHub issueDescribe the bug
If I try to disable Editor
by setting it’s enabled
prop to false
, the Editor is still editable. (<Editor enabled={false}> ... </Editor>
)
Disabling via actions.setOptions((options) => (options.enabled = false));
works without issues.
Expected behavior
<Editor enabled={false} />
should make elements within editor non-draggable (as it was in 0.1.0-beta.20)
Issue is present in 0.2.0-beta.2. Issue is not present in 0.1.0-beta.20.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How do I disable draggable=true on videos? #2979 - GitHub
Setting videoMove to false doesn't help as this doesn't impact the draggable="true" HTML attribute. It only removes the fr-draggable class.
Read more >Disable click and drag cut and paste in IntelliJ Idea IDE
I found it in Settings → Editor → General. Under the Mouse heading. The option is called "Enable Drag'n'Drop functionality in editor".
Read more >How can I disable drag-and-drop functions on GUI in the ...
go to the onNodeDrop function and remove the content of it (or just add return; at the beginning of it). Make sure you...
Read more >Disabling drag and drop functionality within TinyMCE
Hello,. I need to disable the ability to drag and drop media files (or indeed any files) into the tinyMCE editor, I have...
Read more >103803 – option to disable drag and drop
Disabling drag and drop editing is among the very first settings I make whenever I use a source code editor - whether it's...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Released in v0.2.0-beta.4 🎉
Sorry folks, there seems to have been issue with @craftjs/utils when it was published to NPM as the version on NPM did not include the fix.
Please update to 0.2.0-beta.5 to get the bug fix. Sorry for the inconvenience caused, will look into ways to prevent this from happening in the future releases!