What's the difference between the 'before-initialize' and 'initialize' events? #192
-
I'm wanting to use Stimulus to customize the toolbar via Are there any concerns with modifying the options in there? It seems to work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@joelzwarrington in theory "rhino-before-initialize" is meant to happen before the editor initializes, I could see a scenario where the hidden input may get overriden too quickly and have a wrong value? but I've been using "rhino-initialize" and haven't encountered an issue yet so it should be fine, these timing issues are hard. I may even delay the writing to the text input until users have had a full event loop or 2 to be able to attach their extensions before TipTap throws away invalid nodes. TLDR: should be fine |
Beta Was this translation helpful? Give feedback.
@joelzwarrington in theory "rhino-before-initialize" is meant to happen before the editor initializes, I could see a scenario where the hidden input may get overriden too quickly and have a wrong value?
but I've been using "rhino-initialize" and haven't encountered an issue yet so it should be fine, these timing issues are hard. I may even delay the writing to the text input until users have had a full event loop or 2 to be able to attach their extensions before TipTap throws away invalid nodes.
TLDR: should be fine