__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
// EDITOR CONSTRUCTOR
import { CodeMirror } from "./CodeMirror.js"
export { CodeMirror } from "./CodeMirror.js"
import { eventMixin } from "../util/event.js"
import { indexOf } from "../util/misc.js"
import { defineOptions } from "./options.js"
defineOptions(CodeMirror)
import addEditorMethods from "./methods.js"
addEditorMethods(CodeMirror)
import Doc from "../model/Doc.js"
// Set up methods on CodeMirror's prototype to redirect to the editor's document.
let dontDelegate = "iter insert remove copy getEditor constructor".split(" ")
for (let prop in Doc.prototype) if (Doc.prototype.hasOwnProperty(prop) && indexOf(dontDelegate, prop) < 0)
CodeMirror.prototype[prop] = (function(method) {
return function() {return method.apply(this.doc, arguments)}
})(Doc.prototype[prop])
eventMixin(Doc)
// INPUT HANDLING
import ContentEditableInput from "../input/ContentEditableInput.js"
import TextareaInput from "../input/TextareaInput.js"
CodeMirror.inputStyles = {"textarea": TextareaInput, "contenteditable": ContentEditableInput}
// MODE DEFINITION AND QUERYING
import { defineMIME, defineMode } from "../modes.js"
// Extra arguments are stored as the mode's dependencies, which is
// used by (legacy) mechanisms like loadmode.js to automatically
// load a mode. (Preferred mechanism is the require/define calls.)
CodeMirror.defineMode = function(name/*, mode, …*/) {
if (!CodeMirror.defaults.mode && name != "null") CodeMirror.defaults.mode = name
defineMode.apply(this, arguments)
}
CodeMirror.defineMIME = defineMIME
// Minimal default mode.
CodeMirror.defineMode("null", () => ({token: stream => stream.skipToEnd()}))
CodeMirror.defineMIME("text/plain", "null")
// EXTENSIONS
CodeMirror.defineExtension = (name, func) => {
CodeMirror.prototype[name] = func
}
CodeMirror.defineDocExtension = (name, func) => {
Doc.prototype[name] = func
}
import { fromTextArea } from "./fromTextArea.js"
CodeMirror.fromTextArea = fromTextArea
import { addLegacyProps } from "./legacy.js"
addLegacyProps(CodeMirror)
CodeMirror.version = "5.65.0"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| CodeMirror.js | File | 8.42 KB | 0644 |
|
| commands.js | File | 7.33 KB | 0644 |
|
| deleteNearSelection.js | File | 1.03 KB | 0644 |
|
| drop_events.js | File | 5.01 KB | 0644 |
|
| fromTextArea.js | File | 1.94 KB | 0644 |
|
| global_events.js | File | 1.41 KB | 0644 |
|
| key_events.js | File | 5.38 KB | 0644 |
|
| legacy.js | File | 2.52 KB | 0644 |
|
| main.js | File | 2.02 KB | 0644 |
|
| methods.js | File | 21.72 KB | 0644 |
|
| mouse_events.js | File | 15.6 KB | 0644 |
|
| options.js | File | 7.06 KB | 0644 |
|
| utils.js | File | 270 B | 0644 |
|