Editor loses formatting

  • I can see what you mean. Unfortunately, we may not be able to completely replicate the formatting from another source and you will need to do a little fine-tuning.

    The way to fix the line-spacing issue is to go into your Text editor and remove the extra formatting code that got added when WordPress attempted to reproduce what you pasted in:

    < p dir="ltr" style="line-height: 1.15; margin-top: 0; margin-bottom: 10pt;" >

    You’ll see that some of the font information transferred over, and is indicated again in the Text editor with this code:

    < span style="font-size: 13px; font-family: 'Trebuchet MS'; color: #000000; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;" >

    You can remove any < span > or < p > formatting that gets added if you desire, and that will return your post to the “defaults” in WordPress. Be sure you remove both the opening and closing tags, so if you remove the above code, also remove through the < /span > tag.

    It would be worth trying the same paste into Chrome to see if the paste comes in cleaner for you. If not, at least you have a workaround.

  • I just tried a blog post with IE and although some things were better than they were with Firefox yesterday, there were still plenty of problems. It got my line spacing correct, but my bullet text was messed up. Also, the editor window would go blank as I would scroll up and down. The window going blank negated any improvements over Firefox.

    I hope this is fixed soon. Whatever the editor was last week worked. This week has been a pain in getting my blog posts posted. I spend far too much time looking for and fixing problems caused by the new editor and I haven’t seen anything that makes my life easier.

  • For what it’s worth, we encourage people to create their blog posts directly in the WordPress.com visual editor window, or in one of the other “quick post” options in the menu. It’s difficult to maintain support for pasting in from third-party sources that change over time, particularly when we allow for so many formatting choices natively within WordPress.com itself.

  • Yes – that’s what I was doing, but I mostly pasted the text from other articles . I just want default theme format, but simple text strips links, so that doesn’t work either – have to do by hand until we resolve this. I’ll try to avoid posts with too many links. It’s not your fault, but this change seems like a bad idea when heavily used features are removed. No way to get links with text option – no way to paste & preserve theme format.

  • I just tried it with Chrome and from what I can tell it worked. I will have to keep playing with it to see it was just the one document I tried, but this is a step in the right direction.

  • One thing that can help if you’re copying from other sources is to use the “Paste as Text” button that remains in the toolbar. That will strip out the formatting and give you just the text. So you do lose the bold and italics and other formatting like that, but you also won’t have to worry about removing extraneous and unwanted formatting code as well.

  • Progress – today a text paste will keep links.

    However, the format conversion from plain text doesn’t create a new <p> for each line as it used to.

    The complete lack of formatting now makes the visual editor unusable:

    1. I can’t insert a newline or create a new paragraph. The changes simply don’t show up, and even the visual editor takes them out again. It creates blank lines only if they were originally pasted into plain text, but even then shows no HTML for them.

    2. If I create a bulleted list, the bullet is only on the first item.

    However, I can create bold, italic, aligned, or quoted text formats.

    The problem remains with newlines, which “appear” to create a new paragraph as well as a newline in the Visual Editor, but show no changes in the actual HTML or display.

    Isn’t there some way to convert pre-formatted text to my theme font and style? Unless I use plain text with all its problems, my theme no longer formats a consistent style.

    For me, WP is now pretty much unusable without major fiddling and editing and re-editing and I’m falling behind. This really hurts.

  • @zypczyk Try using Chrome. That fixed my problems.

  • I’m having exactly the opposite experience and I’ve checked it three times in disbelief. Perhaps my browser is caching a different version of the WP editor (if it’s being changed on the back end)?

    Using Chrome, all my formatting from Gdocs is stripped out and it looks the same whether I paste in Visual mode or Text mode, whereas Firefox preserves the pasted format to the point it doesn’t match the theme font/size. I don’t have MS Word, so I can’t test that, but that’s not going to become a requirement for WP, is it?

    The format “Add space after paragraph” used to be part of my theme, but now there’s no such space and no difference between newlines and new paragraphs.

    Plus, I can’t add newlines or bullets in the VIsual Editor after pasting as text. The only improvement since yesterday is that the links do remain even in text paste.

    I’ve now spent two whole day’s worth of energy (I’m disabled) on these problems and I’m frustrated to tears at the time wasted. I was posting pain research updates 2/day but now nothing. I don’t want to move and start another blog, darn it!

    Plus, I’m a tutor for an “Introduction to the Internet” class and had been highly recommending WordPress. I’ve been using my blog as an example, so what will I tell my students next week? I sure won’t be able to do my demos anymore.

    Jackie – I’m sorry you’re taking the brunt of my anger – I know it’s not your fault. If you can give me the name of a manager I’d be happy to give them my a piece of my mind instead :-)

  • @zypczyk the Paste as Text option is a toggle. Click on the button a second time to return to the regular formatting options.

  • I tried that – toggled the button on and off several times (it would be nice if a status was displayed whether I was in text mode or not).

    Incredibly, copying the same Gdoc file from each browser, Firefox preserves ALL the Gdocs format in visual paste and won’t use the theme default font/size, while Chrome pastes it as stripped plain text in both both visual and text paste – ??

    This is so crazy it must be a PEBCAK (http://en.wiktionary.org/wiki/PEBCAK) – time to reboot both computer and user.

    I can’t work on this anymore today, so if it’s working for you, I’ll keep trying all the possible combinations. If no one else has this problem, then I’m obviously doing something wrong, and I should eventually be able to discover and fix it. My brain hasn’t been at its best since I got sick :-)

    I’ll let you know Monday. If nothing else, I’ll try to create a better demo of my problem.

    Have a great weekend!

  • Keep in mind that a lot of these issues stem from how each word processor (MS Word, Google Docs, etc.) encode their formatting, and this has to be interpreted by different browsers and by WordPress.com itself. So there will be some discrepancies.

    Because this isn’t a small task to resolve, it may be a while before it gets developer attention, particularly since the “Paste as Word” button was not heavily used (which may be in part why it was removed).

  • The plain text paste leaves zero formatting – no paragraphs

    1) The pre-formatted paste looks good, but won’t display in my theme font. If I at least knew what my theme font was, perhaps I could pre-format it to match.

    2) In addition, the preview of the pasted post has the Gdoc font (Courier), but the view has a different, smaller font – not the one I used and not the theme default. I don’t know what to make of this – the preview has been accurate in the past, but no longer?

    Preview:
    http://edsinfo.wordpress.com/2014/03/31/electromagnetic-treatments-paste-from-gdoc/?preview=true&preview_id=3479&preview_nonce=2f518638f9&post_format=standard

    View:
    http://edsinfo.wordpress.com/2014/03/31/electromagnetic-treatments-paste-from-gdoc/

    3) So, here’s a simpler question: how can I convert my pre-formatted pasted posts into my theme font/format? If I could just solve that problem all would be OK.

    Thanks for your help.

  • I made a mistake on my earlier post – the preview was of a different version than the view. Whew! I’m sorry I’m not more clear, but I do have mental difficulties and I never had any problems before. All the various permutations and combinations I’m trying out are confusing me – different browsers, different formats, different pastes – can’t keep them straight. If only I could find one that works.

    So I really only want to know how I can apply my theme font/styles to my pasted pre-formatted text.

    And I don’t know how to use the “More” button anymore – it puts the break at a random spot unless I specifically create a newline, insert more, and then remove the newline. Is that how it’s supposed to work now?

  • Also, if I paste in plain text into the visual editor, how do I format it? I tried formatting some pasted text paragraphs, but didn’t see the corresponding HTML when I looked at the text version.

    I just need a way to copy “normal” (not plain) text with paragraphs to keep different spacing between the lines and paragraphs (space after paragraph), and then a way to make sure it displays in my theme font/style. I can’t take the time to edit every single plain-text pasted line to end with a newline.

    Please help me find a way to accomplish a simple pre-formatted paste (just paragraphs and links, nothing else!) that displays in my theme font.

  • If you use the “paste as plain text” and paste in text with paragraph breaks, the text should show up in the theme font by default, as there is no formatting coming in with the paste.

    Where things are changing is when you bring in formatting from another source and the editor tries to add additional formatting, which you can see in the Text editor. Alternately, you can compose your post in a plain text editor (like Notepad/Textpad for Windows) and paste that in.

    If you don’t use plain text when you paste in the text, you may need to edit the HTML if the source brings in formatting.

  • If I paste as “plain text” into the Visiual Editor and I look at the “Text” where the HTML code should be, there is no HTML at all, just a long string of text with linebreaks where paragraphs were, instead of paragraph breaks.

    When I try to add formatting in the Visual Editor afterward (with or without toggling the “as text” button), like putting newlines after the paragraphs or trying to “set” format as “paragraph”, it doesn’t save the changes and the post is still left without any HTML.

    If I select text and try to format it as something else, like “header 5”, it formats the whole post that way (with <h5> at the start and </h5> at the very end of post), and trying to reformat as paragraph thereafter strips out ALL HTML again. The only functionality that I can add are links and font style – that adds HTML to the selected text, but no other part of the post.

    I’m doing all this in Chrome (after giving up on Firefox), so I still don’t believe the WP editor is working correctly. The “more” button doesn’t work as it used to in either browser if I’m in a “blockquote”. It inserts the page break either at the end of the post or some seemingly random place in the middle.

    I can create decently formatted posts now using another new odd behavior: pasting formatted text from Chrome into the Visual Editor strips all formatting for fonts, but nothing else – just like it used to do with Firefox, which now pastes the font formatting as well. If it was IE that was behaving badly, I’d understand, but Firefox?

    I’ve already spent 3-4 days on this issue and have decided to stop wasting my (and your) time trying to get it fixed. The problem is far more complicated than I can fully demonstrate without sending you lots of screenshots, so you can close it.

    I do appreciate your continued efforts to help me.

  • If you paste text as “plain text” then there wouldn’t be any formatting in the Text Editor. Generally there won’t be < p> paragraph breaks unless you are pasting something that has that formatting already or you add them.

    If you are having trouble formatting text after that, you may still be in Plain Text mode. Check the T icon; if it’s black/outlined then you’re in Plain Text mode. Click on it to leave Plain Text mode and return to our regular editor which should allow you to add HTML either manually or with our buttons and drop downs.

  • I am having the same problem as described in this thread under WordPress 3.9 and now 3.9.1, not in 3.8.3 on down.

    Manually keystroke in “text” mode for example: <style>h4 {font-family: “Oswald”, sans-serif; font-weight: 400; font-size: 25px; padding-bottom: 10px}</style><h4>Glossary Of Investment Terms</h4>

    Yes, I normally apply such edits in the custom or child CSS style sheet, but this is special one or two time inline workaround. Works great as one would expect. However click “Visual” tab and then back to “Text” tab, the whole <style> slug is gone. Tried in IE11, Chrome 34, Firefox, all the same. Not a problem with my other some 25 WordPress sites still under 3.8 or 3.7. So there you go Jackie-O… a problem that can’t be blamed on third-party editors, all keystroked and proven good, then gone. Not a good problem to have.

  • We cannot help you with WordPress.ORG software.

  • The topic ‘Editor loses formatting’ is closed to new replies.