• Even the preformatted block has big issues and limits when pasting simply formatted text. Here there is a small sample of what happens when pasting text from a LibreOffice .odt document.

    The source document looks so:
    https://drive.google.com/file/d/1qYsFQKvu04_Dh2Wgl7rXkaHBErIUS6Gd/view?usp=sharing

    The pasted text into a preformatted block looks so:
    https://drive.google.com/file/d/1_iTVI0TBDk77dGYInesatPzIn7sQoxs_/view?usp=sharing

    Many parts of the text are completely messed up, like it is happened here in the first part. This trouble happens only when pasting the text in WordPress, nowhere else.
    Anyway, the alignment inside of the block goes lost, the color of the text goes lost, the underline goes lost.
    The toolbar of the block has no buttons to change color, size, and many other essential settings for the text.
    And why there is always an unwanted text header at the begin of the pasted text? It can be much more longer than this:
    “@page { margin: 2cm } p { margin-bottom: 0.25cm; line-height: 120% }”

    The pasted text into a “classic paragraph” block, using the ‘TinyMCE Advanced’ plugin looks so:
    https://drive.google.com/file/d/1nB-aIfh0yIIXoVlGrRYKCaHvaYrmgtwI/view?usp=sharing

    The line spacing and line breaks don’t look as they should. The auto paragraph function can’t be deactivated. I don’t want to break the text in paragraphs at each line return, and I don’t need it.
    The font sizes available in the tool bar are prefixed “12, 14, 18, …”, there is not 16.

    So, in conclusion there is no way to work with pasting text from a text document. I have to paste text from about 40-50 .odt pages, and I will have to do it often, to keep the pages updated. I don’t know how to solve the problem.
    In many forums I have not so big problems when pasting text from a .odt or .docx document.

Viewing 1 replies (of 1 total)
  • Thread Starter tyco72

    (@tyco72)

    In the code editor, I see that the code of the messed up text is filled with <span> tags, which I don’t know where they come from.
    In the Classic blocks, the code looks like the same, although the text is not displayed so broken as in the Preformatted block.

    <!– wp:tadv/classic-paragraph –>
    <p lang=”en-US” align=”left”><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>P</span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>rob</span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>a</span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>bly, </span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>collisions with other galaxies have </span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>already happened to the Milky Way in the past, in</span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>corporating </span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>other smaller galaxies. Some </span></span><span style=”color: #c9211e;”><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>stars cluster,</span></span></span> <span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>which </span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>we observe today </span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>in our galaxy are probably the </span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>reminiscence</span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”> of the cores of o</span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>ther </span></span><span style=”font-family: Arial, sans-serif;”><span style=”font-size: small;”>galaxies the Milky Way collided with.</span></span></p>
    ……..

    • This reply was modified 3 years, 9 months ago by tyco72.
Viewing 1 replies (of 1 total)
  • The topic ‘Pasting text from Word in blocks messes up the formatting’ is closed to new replies.