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

Fix: check event.defaultPrevented before handling events to avoid conflicts with other plugins #106

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

RyotaUshio
Copy link
Contributor

Hi, thank you for maintaining this plugin which is important for the community!

As stated in the developer documentation, a community plugin has to check event.defaultPrevented before handling editor-paste and editor-drop events to see if other plugins already handle the event.

So I added the two lines according to this. This change will fix conflicts with other plugins such as https://github.com/RyotaUshio/obsidian-advanced-external-links (sorry this is my plugin).

@zolrath zolrath merged commit f4c2d94 into zolrath:main Feb 12, 2024
@zolrath
Copy link
Owner

zolrath commented Feb 12, 2024

Makes sense, thanks!

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

Successfully merging this pull request may close these issues.

2 participants