MCPcopy Create free account
hub / github.com/codecombat/codecombat / pasteHandler

Function pasteHandler

app/core/aceUtils.js:220–229  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

218
219const 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',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected