-
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
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.
-
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
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.