How to keep pasted text in one paragraph block instead of splitting into multiple?

[ad_1]

I’m trying to paste a few paragraphs of text into a single paragraph block in wordpress. I want it to stay in that one block because I have a scroll y-overflow, but wordpress splits the text into multiple paragraph blocks at each newline character. Is there any way I can make it stay in one paragraph block other than pasting as one big text and adding the newlines manually with shift+enter? It would save me a lot of time not having to delete all the newlines and re-add them after pasting. Thanks!!

Edit: The only partial fix I’ve found so far is “locking” the paragraph block before pasting, but it only does one newline between paragraphs no matter how many newlines are actually in the copied text. Still better than no newlines, but I’d like to have a full empty line between each pasted pararaph.

[ad_2]
2 Comments
  1. Easiest way is to create a group/container block and put your custom overflow-y:scroll on that instead of a paragraph block which is literally only meant for a single paragraph of text. If you use a group/container, you can put whatever you want in it.

  2. You could try disabling wpautop for the content… “remove_filter(‘the_content’, ‘wpautop’);” add to functions.php

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer