Skip to content

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Dec 12, 2025

Purpose

We bump the blocknote dependencies to version 0.44.2 to incorporate the latest features and bug fixes.
It seems to fix an issue with Titap, when the text was selected and the user clicked on the Go Back button of the browser, the application was crashing.

"[tiptap error]: The editor view is not available. Cannot access view['dom']. The editor may not be
mounted yet."
@AntoLC AntoLC self-assigned this Dec 12, 2025
@AntoLC AntoLC added bug Something isn't working frontend labels Dec 12, 2025
@AntoLC AntoLC linked an issue Dec 12, 2025 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Dec 12, 2025

Size Change: +721 B (+0.02%)

Total Size: 4.14 MB

Filename Size Change
apps/impress/out/_next/static/92dcc62c/_buildManifest.js 0 B -903 B (removed) 🏆
apps/impress/out/_next/static/chunks/0c22ff5f.js 0 B -33.4 kB (removed) 🏆
apps/impress/out/_next/static/chunks/1829.js 0 B -4.31 kB (removed) 🏆
apps/impress/out/_next/static/chunks/8323.js 0 B -730 kB (removed) 🏆
apps/impress/out/_next/static/chunks/8495.js 61.9 kB +528 B (+0.86%)
apps/impress/out/_next/static/chunks/a498f5e2.js 29.4 kB +1.86 kB (+6.75%) 🔍
apps/impress/out/_next/static/css/723a7e7b885cc079.css 0 B -34.7 kB (removed) 🏆
apps/impress/out/_next/static/c9158bbb/_buildManifest.js 884 B +884 B (new file) 🆕
apps/impress/out/_next/static/chunks/8927.js 4.42 kB +4.42 kB (new file) 🆕
apps/impress/out/_next/static/chunks/9945.js 761 kB +761 kB (new file) 🆕
apps/impress/out/_next/static/css/5f955afb16c4ed29.css 34.7 kB +34.7 kB (new file) 🆕

compressed-size-action

@AntoLC AntoLC force-pushed the fix/issue-text-overwriten-goback branch 3 times, most recently from 055e256 to 75b7d90 Compare December 15, 2025 11:51
@AntoLC AntoLC requested a review from Ovgodd December 16, 2025 08:18
Copy link
Collaborator

@Ovgodd Ovgodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good for me ( just suggested 2 changes )


// Should not happen
if (!editor) {
if (!editor || !editor._tiptapEditor?.view?.dom) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit :

Suggested change
if (!editor || !editor._tiptapEditor?.view?.dom) {
const isEditorReady = Boolean(editor) &&
Boolean(editor._tiptapEditor?.view?.dom);
if (!isEditorReady ) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It helps the linter to understand that editor is set, if we do as suggested, you get lint error:
image

Comment on lines +104 to +108
onKeyDown={(e) => {
if (e.key === 'Escape' && openEmojiPicker) {
setOpenEmojiPicker(false);
}
}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth extracting this inline handler to keep the JSX more readable.maybe like this :
const handleEmojiButtonKeyDown = ( event: React.KeyboardEvent<HTMLElement> ) => { if (event.key === 'Escape' && openEmojiPicker) { event.stopPropagation(); setOpenEmojiPicker(false); } };

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For big chunk of code I agree it is better, but for small snippet I find it is easier to have it directly on the component, I don't have to search where the function is, I can see directly what it is doing like that.

@AntoLC AntoLC force-pushed the fix/issue-text-overwriten-goback branch from 75b7d90 to 01d6625 Compare December 16, 2025 09:45
We bump the blocknote dependencies to version
0.44.2 to incorporate the latest features
and bug fixes.
It seems to fix an issue with Titap, when the text
was selected and the user clicked
on the Go Back button of the browser, the
application was crashing.
"[tiptap error]: The editor view is not available.
Cannot access view['dom']. The editor may not be
mounted yet."
WebSocketStatus.Connected does not mean
we are totally connected because authentication
can still be in progress and failed.
So we will use the event onAuthenticated to assert
that we are fully connected.
The recent update of Blocknote brokes a test
because a element was not easily accessible anymore.
We improved the CalloutBlock to be able to
be closed when "escape" is pressed, we improve
the positionning of the EmojiPicker too.
@AntoLC AntoLC force-pushed the fix/issue-text-overwriten-goback branch from 01d6625 to 2f612db Compare December 16, 2025 09:49
@AntoLC AntoLC merged commit 2f612db into main Dec 16, 2025
34 of 36 checks passed
@AntoLC AntoLC deleted the fix/issue-text-overwriten-goback branch December 16, 2025 12:48
@AntoLC AntoLC linked an issue Dec 18, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend

3 participants