HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/editor/ext-spellcheck.js
ace.define(
	'ace/ext/spellcheck',
	['require', 'exports', 'module', 'ace/lib/event', 'ace/editor', 'ace/config'],
	function (e, t, n) {
		'use strict'
		var r = e('../lib/event')
		t.contextMenuHandler = function (e) {
			var t = e.target,
				n = t.textInput.getElement()
			if (!t.selection.isEmpty()) return
			var i = t.getCursorPosition(),
				s = t.session.getWordRange(i.row, i.column),
				o = t.session.getTextRange(s)
			t.session.tokenRe.lastIndex = 0
			if (!t.session.tokenRe.test(o)) return
			var u = '\x01\x01',
				a = o + ' ' + u
			;(n.value = a),
				n.setSelectionRange(o.length, o.length + 1),
				n.setSelectionRange(0, 0),
				n.setSelectionRange(0, o.length)
			var f = !1
			r.addListener(n, 'keydown', function l() {
				r.removeListener(n, 'keydown', l), (f = !0)
			}),
				t.textInput.setInputHandler(function (e) {
					if (e == a) return ''
					if (e.lastIndexOf(a, 0) === 0) return e.slice(a.length)
					if (e.substr(n.selectionEnd) == a) return e.slice(0, -a.length)
					if (e.slice(-2) == u) {
						var r = e.slice(0, -2)
						if (r.slice(-1) == ' ')
							return f
								? r.substring(0, n.selectionEnd)
								: ((r = r.slice(0, -1)), t.session.replace(s, r), '')
					}
					return e
				})
		}
		var i = e('../editor').Editor
		e('../config').defineOptions(i.prototype, 'editor', {
			spellcheck: {
				set: function (e) {
					var n = this.textInput.getElement()
					;(n.spellcheck = !!e),
						e
							? this.on('nativecontextmenu', t.contextMenuHandler)
							: this.removeListener('nativecontextmenu', t.contextMenuHandler)
				},
				value: !0,
			},
		})
	}
)
;(function () {
	ace.require(['ace/ext/spellcheck'], function (m) {
		if (typeof module == 'object' && typeof exports == 'object' && module) {
			module.exports = m
		}
	})
})()