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

feat: Add exception tag list for global drag handle #17

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

HanCiHu
Copy link
Contributor

@HanCiHu HanCiHu commented Aug 25, 2024

Hello, I've been using global drag handle in tiptap really well !!

If I want to hide the drag handle on some elements, I can add a not-draggable class, but If I want to hide it for all specific tags, it's unmanageable to add a class for every tag.

So how about getting the tags developers want to hide as options?

@HanCiHu HanCiHu force-pushed the feature/add-except-tag branch from e0d17db to 445016b Compare August 25, 2024 08:37
@HanCiHu HanCiHu force-pushed the feature/add-except-tag branch from 445016b to dfdf3e6 Compare August 25, 2024 08:38
@NiclasDev63
Copy link
Owner

lgtm, but I would remove ‘ol’, ‘ul’ from the default excludedTags list, otherwise it may cause confusion as ol and ul list items are draggable and these tags are used internally and are mandatory to avoid flickering of the handle in lists. Please also update the README

@HanCiHu HanCiHu force-pushed the feature/add-except-tag branch from 3742755 to 9299bc0 Compare September 5, 2024 13:00
@HanCiHu
Copy link
Contributor Author

HanCiHu commented Sep 5, 2024

Thanks for your comment !
I removed 'ol', 'ul' from the default excluded tags list and wrote README.
could you check them again please?

@HanCiHu HanCiHu force-pushed the feature/add-except-tag branch from 9299bc0 to f2d08aa Compare September 5, 2024 13:18
@HanCiHu HanCiHu force-pushed the feature/add-except-tag branch from f2d08aa to 8660fa2 Compare September 7, 2024 09:20
@NiclasDev63 NiclasDev63 self-requested a review September 10, 2024 10:29
@NiclasDev63 NiclasDev63 merged commit e1b4bc2 into NiclasDev63:master Sep 10, 2024
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