a tool for shared writing and social publishing

count line breaks in bsky post editor as length

+3 -1
+3 -1
app/[leaflet_id]/publish/BskyPostEditorProsemirror.tsx
··· 245 245 view.updateState(newState); 246 246 setEditorState(newState); 247 247 props.editorStateRef.current = newState; 248 - props.onCharCountChange?.(newState.doc.textContent.length); 248 + props.onCharCountChange?.( 249 + newState.doc.textContent.length + newState.doc.children.length - 1, 250 + ); 249 251 }, 250 252 }, 251 253 );