Remove jQuery usage from app/assets/javascripts/behaviors/markdown/copy_as_gfm.js
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Label this issue](https://contributors.gitlab.com/manage-issue?action=label&projectId=278964&issueIid=595359) </details> <!--IssueSummary end--> > [!important] > _This guidance was generated by GitLab Duo and may be inaccurate. Please verify before use._ ## Summary **Files:** `app/assets/javascripts/behaviors/markdown/copy_as_gfm.js` (~231 lines, Medium) Handles copy-as-GFM and paste-GFM for markdown content. Uses jQuery for document-level delegated events and `e.originalEvent` unwrapping. ## Implementation plan - Replace `$(document).on('copy'/'paste', selector, handler)` with delegated native listeners using `e.target.closest(selector)` - Remove `e.originalEvent` references -- native events provide `e.clipboardData` directly ## Test areas - Copy text from rendered markdown (issue description, comment) and paste into another markdown input - Copy code blocks, tables, lists from rendered markdown - Quote reply on issue/MR comments
issue