1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug XenForo not playing well from text pasted from word

Discussion in 'Resolved Bug Reports' started by Rigel Kentaurus, Oct 11, 2010.

Thread Status:
Not open for further replies.
  1. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Test pasted from word has always been an issue, and somehow vBulletin dealt with it. I thought that was just stripped, but I guess it wasn't, and it is only somehow hidden. When I did an import to XenForo, a LOT of that was exposed, in such a way that some of my threads are unreadable.

    (original: http://fanficslandia.com/showthread.php?t=195684)

    (original: http://fanficslandia.com/showthread.php?t=195685)

    In the first link it is pretty obvious that it came from a Word document. In the second link the text is just plagued by emoticons. I consider this as a bug. Either from XenForo or from the import process.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    HTML is enabled on your vB forum. That post uses HTML formatting. The problem is that xenForo doesn't currently support HTML posts so the HTML is being exposed. The devs have said that feature may be added in the future, possibly as a HTML BB code.
  3. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    I see, so that is the reason.

    I have no idea why HTML is enabled, it is disabled in most other of my forums ...
    I have disabled HTML and now the post is showing incorrectly in vBulletin, which is expected. Thanks.
  4. Pepelac

    Pepelac Well-Known Member

    Don't paste text from Word, unless it was cleaned from all that sh*t that it adds to html. Or use online services, like http://word2cleanhtml.com/ to clean text.
    Wysiwyg editor, that used in XenForo has a button "Paste from Word", but it is disabled.
    But as i said, paste text from Word is bad idea.
  5. feldon30

    feldon30 Well-Known Member

    Not really sure why it's XenForo's responsibility to clean up the monstrously bad, proprietary code generated by Microsoft Word. When you are in Word, you can Copy as Plain Text.
  6. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    I cannot say that to 10,000 members, tough ;)
    So, yes, it has to be solved at the software level

    It is a forum for writers .. they post their stories. They do use .doc for creating them. They could put them as an attachment, most choose to just copy-paste the text. I understand that copying and pasting from word is a bad idea but it is logistically impossible to educate everybody.

    Anyhow, I don't think this is a problem with the copy-paste, but rather with the import.
  7. feldon30

    feldon30 Well-Known Member

    I'm sure there is a way to re-enable the Paste From Word button which is normally included with TinyMCE but which has been disabled in XenForo.
    Pepelac likes this.
  8. Pepelac

    Pepelac Well-Known Member

    Yes. But I think, that there isn't way to make users use that button
  9. feldon30

    feldon30 Well-Known Member

    Hmm just looked and couldn't make heads or tails of the TinyMCE XenForo style file.
  10. Brogan

    Brogan XenForo Moderator Staff Member

    The developers have suggested that HTML within posts might be available in a future release.
    So hopefully that will solve your particular problem.
  11. feldon30

    feldon30 Well-Known Member

    If they want to paste from Word they will. Is there a WYSIWYG editor out there that automatically strips out the hundreds of proprietary, bogus, nonsense MS Word tags, without stripping out tags the user might be wanting to post, like bbCodes, and HTML tags for instance in a [html] or [code] box?
  12. jauburn

    jauburn Well-Known Member

    Is there a way to bring back the paste from Word button in Xenforo's implementation of tinymce?
  13. D.O.A.

    D.O.A. Well-Known Member

    just how stupid are your members. If they can't read/comprehend a sticky god help them irl.
  14. TrevC

    TrevC Well-Known Member

    Nice attitude. Why bother commenting? Users shouldn't need a sticky to explain why simply pasting content is broken.

    Yeah, pasting from Word is strange, but I've seen people do similar things. It's one of those user actions that should "just work", without presenting issues for people or the appearance of the forum. All pasted formatting/fonts should be stripped as a TinyMCE default, IMO.

    I fixed some of our issues with pasted content by over-riding all styles in posts. You can force font-size, color, weight, etc, to somewhat clean up the garbage editor output. Just use the !important declaraton in your CSS like:
    .messageText, .messageText *
        background: none!important;
        font-size: 1em!important;
        color: #333!important;
        font-family: "Helvetica Neue", sans-serif!important;
        text-align: left!important;
  15. cclaerhout

    cclaerhout Well-Known Member

    Hop Hop, this is a two years old thread that I've been "popuped" but a member who posted the same question in three or four different threads.
    There is now a plugin to fix that. Case is closed.
  16. DFI

    DFI Active Member

    Chrome provides option of " Paste as Plain Text " and that's the easiest way to get rid of this .
  17. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    This thread is from 2010. Two years ago.
    It has been marked as "Not a Bug". The developers are not fixing it.
    Commenting on this thread is pretty useless.
    Slavik likes this.
Thread Status:
Not open for further replies.

Share This Page