How to inject unsaved rich editor contents into an action?
How can I use action utility injection to capture the current contents, unsaved, of my rich editor?
$record
obviously gives me the current DB model from the database (which doens't include unsaved changes), and $state
also gives me data (in a TipTap array format) that doesn't include the user's changes.
What am I doing wrong? Is there another way to access the current unsaved state of the editor? The rich editor was constructed with ->live()
.
Thank you!0 Replies