Auto capitalize first letter of every paragraph

Hey all,

I’m having trouble making it so for every paragraph, if the first letter is lowercase, it’s replaced by uppercase letter.

Any help would be appreciated.

Thanks

I think the robust way to do that would be an appendTransaction hook that checks the document for non-capitalized textblocks, and replaces their first letter if it finds any.

Do you have somewhere an example which how to use it?

Here are the docs for appendTransaction

It’d probably be a good idea to spend some quality time with the guide and examples.

I see with docs but i don’t understand how use it in tiptop editor

Looks like they’ve wrapped them up in something called extensions. Here are some plugins they bundle. I’m personally just using Prosemirror directly (though had my company not leaned heavily into React I’d have been pretty happy to give it a shot) so I’m not going to be much help. Might be worth adding a prefix like tiptap: to your subject line (assuming Marijn is alright with that) and see if someone with tiptap experience jumps in.