We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30265
    • 0 Posts
    This is an auto-generated support/comment thread for Clean Pasted Word Document.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Aggressively strips tags from the document if MS Word data is found.
      • 7231
      • 4,205 Posts
      Cool, I saw this in twitter and already had a look. grin
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 27708 MODX Staff
        • 2,502 Posts
        This plugin doesn’t seem to do anything. It makes no access to the document object.

        Can anybody attest that it does or can do anything as written?
          Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
          • 10449
          • 956 Posts
          The "paste from Word" tinyMCE button works actually quite well. If you instruct your client to use that whenever pasting stuff from MS-Office docs, you should be fine.
            • 27708 MODX Staff
            • 2,502 Posts
            @ganeshXL They are using it for the content but the problem is other fields too like introtext also. In addition there seems to be a weird loop on save that is causing the chars to be extended and extended by what may be htmlspecialchars() replacing part of the entity on docsave.
              Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
              • 7231
              • 4,205 Posts
              smashingred : it is not accessing the document object but it is manipulating the $content variable directly, and this included all of the content not just the document content field (i think). Since it is triggered OnBeforeDocFormSave the document is being manipulated so the document object is not relevant.
                [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                Something is happening here, but you don't know what it is.
                Do you, Mr. Jones? - [bob dylan]