MCPcopy Index your code
hub / github.com/DHTMLX/gantt / handlePaste

Function handlePaste

samples/common/codehighlight/codemirror.js:8152–8160  ·  view source on GitHub ↗
(e, cm)

Source from the content-addressed store, hash-verified

8150 }
8151
8152 function handlePaste(e, cm) {
8153 var pasted = e.clipboardData && e.clipboardData.getData("Text");
8154 if (pasted) {
8155 e.preventDefault();
8156 if (!cm.isReadOnly() && !cm.options.disableInput)
8157 { runInOp(cm, function () { return applyTextInput(cm, pasted, 0, null, "paste"); }); }
8158 return true
8159 }
8160 }
8161
8162 function triggerElectric(cm, inserted) {
8163 // When an 'electric' character is inserted, immediately trigger a reindent

Callers 1

codemirror.jsFile · 0.85

Calls 3

runInOpFunction · 0.85
applyTextInputFunction · 0.85
getDataMethod · 0.45

Tested by

no test coverage detected