(e)
| 218 | |
| 219 | const toggleACEPasteFeature = function (editor, disabled = false) { |
| 220 | const pasteHandler = function (e) { |
| 221 | if (disabled) { |
| 222 | window.noty({ |
| 223 | text: $.i18n.t('teachers.disable_paste_noty'), |
| 224 | type: 'warning', |
| 225 | }) |
| 226 | e?.preventDefault?.() |
| 227 | e?.stopPropagation?.() |
| 228 | } |
| 229 | } |
| 230 | if (disabled) { |
| 231 | [ |
| 232 | 'drop', 'paste', 'contextmenu', |
nothing calls this directly
no outgoing calls
no test coverage detected