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: Late initialization. #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

feat: Late initialization. #32

wants to merge 2 commits into from

Conversation

thet
Copy link
Member

@thet thet commented Jul 21, 2022

Add lazy argument (default: false) to initialize tiptap only when the text container gets focus.
This is done via an intermediate container which will be replaced when tiptap has finished it's initialization.

This avoids initializing lots of tiptap instances when many text areas are shown, where most of the time none or only a few are likely to be used.
A typical use case is to show a lot of comment boxes with tiptap mentioning functionality.

thet added 2 commits July 21, 2022 15:54
Add ``lazy`` argument (default: ``false``) to initialize tiptap only when the text container gets focus.
This is done via an intermediate container which will be replaced when tiptap has finished it's initialization.

This avoids initializing lots of tiptap instances when many text areas are shown, where most of the time none or only a few are likely to be used.
A typical use case is to show a lot of comment boxes with tiptap mentioning functionality.
@thet thet requested a review from pilz July 21, 2022 13:55
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.

1 participant