{"push_id":598936297,"size":1,"distinct_size":1,"ref":"refs/heads/MDL-47003-master","head":"91d09a9f56f78381a72dc3f1b66126e6ee80895f","before":"e1c70a0a50b7e01f986ede70f4e2b4e38c8fcee0","commits":[{"sha":"91d09a9f56f78381a72dc3f1b66126e6ee80895f","author":{"email":"507ce55bbc16d4fb2defbe26a0dcef008bca1f1a@oakland.edu","name":"Eric Merrill"},"message":"MDL-47003 atto: Improve paste behaviour and various cleanups\n\nBackground: The old code cleaned all content very heavily and also\nfailed to clean content in the editor div, which resulted in\nundesirable code being being left in the div for editing, and also\nstripping too much out of allowed code.\n\nThe solution is multi-fold. We now separate the code cleaning into\ntwo different types of clean - one on standard clean event (update\ntextarea or loading editor from texteach) and one that only fires on\npaste events (ideally only on html paste events).\n\nWhen the paste event it fired, pasteCleanup() is called with the event.\nIf it has a clipboard we can access, we stop the event, take the\nclipboard data, and run it through the extended scrubber and then\ninsert it into the editor. If we can't access the clipboard, register\nfallbackPasteCleanup() to fire, which will clean the entire editor div.\n\nWe now allow html comments and unicode characters, and we try to only\nstrip Office like garbage on html paste events. We also now remove\nentire style blocks, not just the open and close tags.","distinct":true,"url":"https://api.github.com/repos/merrill-oakland/moodle/commits/91d09a9f56f78381a72dc3f1b66126e6ee80895f"}]}