Skip to content

How to remove default link shortcut #1647

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

Open
lbhfuture opened this issue Apr 28, 2025 · 0 comments
Open

How to remove default link shortcut #1647

lbhfuture opened this issue Apr 28, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@lbhfuture
Copy link

lbhfuture commented Apr 28, 2025

Is your feature request related to a problem? Please describe.
I have defined a custom link inline spec with a defined input rule, and create editor schema without defaultInlineContentSpecs. But when I type a http link content, such as https://www.bing.com, then type a whitespace or enter, it insert default link inline content.

Describe the solution you'd like
Before I type in whitespace or enter, the input rule of my custom link inline content is triggered, but once whitespace or enter type in, the default link triggered and my custom link is invalid. It is bad, in this scene, my custom link should always be triggered.

Describe alternatives you've considered
Provide a configuration to remove or disabled default link spec, include input rules.

Additional context

Bonus
[ ] I'm a sponsor and would appreciate if you could look into this sooner than later 💖

@lbhfuture lbhfuture added the enhancement New feature or request label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant