One paste keeps the words and drops every blank line
The posting API we use only accepts video, so a text post had to go through the site’s own composer in the browser. The paste came out as one wall of words.
How to do it
- When the API cannot take the format you need, drive the site’s own composer in the browser instead of reshaping the content to fit the API.
- Paste the whole text once and count the lines. Here one plain text paste event kept every word and dropped every blank line, and an HTML paste was ignored. That pair of observations is the signature of a rich text editor like ProseMirror, which is what this composer runs on.
- Stop trying to fix it inside one paste. Split the text on its blank lines, send one paste event per block, and press Return twice with real key events between blocks.
- Read the composer back line by line against the source file before you click Post. The file was 1,318 characters and 18 lines, so the check is cheap and it is the last moment where a fix costs nothing.
- After posting, open the post page and confirm the text appears once, with its blank lines intact. Posting is the kind of step that can look like it failed and still have landed, so the page is the only answer you trust.
I need to publish a multi paragraph text post through a browser composer, not an API. The composer is a rich text editor, so a single plain text paste keeps the words but drops the blank lines, and an HTML paste is ignored. Do this: read my source file, split the text on blank lines into blocks, focus the editor, then for each block send its own paste event and press Return twice with real key events before the next block. When all blocks are in, print the editor's contents line by line next to the source file and stop so I can compare them. After I approve and you click Post, open the post page and tell me how many times the text appears and whether the blank lines survived.