tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
count line breaks in bsky post editor as length
awarm.space
3 months ago
09f1e55e
edf04618
+3
-1
1 changed file
expand all
collapse all
unified
split
app
[leaflet_id]
publish
BskyPostEditorProsemirror.tsx
+3
-1
app/[leaflet_id]/publish/BskyPostEditorProsemirror.tsx
···
245
245
view.updateState(newState);
246
246
setEditorState(newState);
247
247
props.editorStateRef.current = newState;
248
248
-
props.onCharCountChange?.(newState.doc.textContent.length);
248
248
+
props.onCharCountChange?.(
249
249
+
newState.doc.textContent.length + newState.doc.children.length - 1,
250
250
+
);
249
251
},
250
252
},
251
253
);