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

Fixed WYSIWYG editor issue - font info appearing on preview

Discussion in 'Resolved Bug Reports' started by Stuart Wright, Jul 29, 2010.

  1. Stuart Wright

    Stuart Wright Well-Known Member

    I composed a post in Word and then pasted it into the new post editor box. When previewing it, there was lots of font HTML text at the top.
    There was no way to get rid of this without copying the content into and back out of notepad to remove it.
    Can we have a raw code view of the post content so I can remove it, or do a striptags on it or something? Thanks
  2. Facepalmx2

    Facepalmx2 Active Member

    There is a remove formatting button, top left of the WYSIWYG editor. It looks like a whiter eraser. :)
  3. Mike

    Mike XenForo Developer Staff Member

    There's remove formatting, but the HTML shouldn't get through. Do you still have the Word version? Can you save it and send it to me? (or zip it and attach it)
  4. Erik

    Erik Well-Known Member

    Does this have anything to do with the FOUC (Flash of Unstyled Content) that we see when the WYSIWYG editor loads? You can see HTML and then the editor loads and the text flashes into its styled form. I've been meaning to try and exploit this to see if I can add in my own HTML (to test security of course, not trying to be malicious), but I haven't gotten around to it. :)
    Nickolas likes this.
  5. Floren

    Floren Well-Known Member

    That is standard Microsoft insert code, in case you attach your document to Sharepoint. It stores a bunch of information, used by Sharepoint to do live updates on document, etc. Same with Excel or other Microsoft based documents. Plus, if your Word document contains fancy code not supported by Xen Rich Editor, it will break the page. Best is not to use it and deal directly with the Rich Editor in Xen.
  6. Stuart Wright

    Stuart Wright Well-Known Member

    I tried that but it didn't remove the formatting.
    I'd attach the file, but it's a Word 2007 docx and that extension isn't allowed.
    [Edit - zipped it]

    Attached Files:

  7. Floris

    Floris Guest

    Attached file has a broken image for the .zip?

  8. Mikey

    Mikey Well-Known Member

  9. Mike

    Mike XenForo Developer Staff Member

    I've fixed this by adding TinyMCE's paste plugin. It does some other things that I'm not sure about, so we'll have to play with this over time.
  10. DoctorWatsOn

    DoctorWatsOn Well-Known Member

    Testing 1 – 2 – 1 - 2

    ETA: That seems to work. :cool:
  11. Floris

    Floris Guest

    Safari5, Mac10.6

    When I have something in my clipboard, I want to paste it say 5 times, I have to re-select the textaera in tinymce to get focus on it again, before I can paste again. Every paste = loses focus.
  12. Erik

    Erik Well-Known Member

    Can not reproduce. Firefox 3.6.8, Win 7.

Share This Page