Skip to content

prevent saving empty Tiptap editor content leading to empty content being exported#4487

Open
ComputelessComputer wants to merge 1 commit intomainfrom
c-branch-5
Open

prevent saving empty Tiptap editor content leading to empty content being exported#4487
ComputelessComputer wants to merge 1 commit intomainfrom
c-branch-5

Conversation

@ComputelessComputer
Copy link
Collaborator

Add isEmptyTiptapContent utility to detect empty editor states and skip persistence when content contains only whitespace or empty paragraphs. This prevents unnecessary database writes and improves performance by avoiding saves of meaningless content changes in both raw and enhanced note editors.

@netlify
Copy link

netlify bot commented Mar 10, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 61eca26
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69b031feb1439b0008deede2
😎 Deploy Preview https://deploy-preview-4487--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Mar 10, 2026

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit 61eca26
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69b031fe2c1dbc0008897062
😎 Deploy Preview https://deploy-preview-4487--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ComputelessComputer ComputelessComputer changed the title feat: prevent saving empty Tiptap editor content prevent saving empty Tiptap editor content leading to empty content being exported Mar 10, 2026
Add isEmptyTiptapContent utility to detect empty editor states
and skip persistence when content contains only whitespace or
empty paragraphs. This prevents unnecessary database writes and
improves performance by avoiding saves of meaningless content
changes in both raw and enhanced note editors.
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