Skip to content

feat: Late initialization.#32

Open
thet wants to merge 2 commits intomasterfrom
initialize-on-focus
Open

feat: Late initialization.#32
thet wants to merge 2 commits intomasterfrom
initialize-on-focus

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