• 笙默考试管理系统-MyExamTest----codemirror(27)


    笙默考试管理系统-MyExamTest----codemirror(27

    目录

    一、 笙默考试管理系统-MyExamTest----codemirror

    二、 笙默考试管理系统-MyExamTest----codemirror

    三、 笙默考试管理系统-MyExamTest----codemirror

    四、 笙默考试管理系统-MyExamTest----codemirror

    五、 笙默考试管理系统-MyExamTest----codemirror

    • 笙默考试管理系统-MyExamTest----codemirror

    function endOperation() {

                var reScroll = false, updated;

                if (selectionChanged) reScroll = !scrollCursorIntoView();

                if (changes.length) updated = updateDisplay(changes, true);

                else {

                    if (selectionChanged) updateCursor();

                    if (gutterDirty) updateGutter();

                }

                if (reScroll) scrollCursorIntoView();

                if (selectionChanged) {scrollEditorIntoView(); restartBlink();}

    • 笙默考试管理系统-MyExamTest----codemirror

                if (focused && !leaveInputAlone &&

                    (updateInput === true || (updateInput !== false && selectionChanged)))

                    resetInput(userSelChange);

                if (selectionChanged && options.matchBrackets)

                    setTimeout(operation(function() {

                        if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}

    • 笙默考试管理系统-MyExamTest----codemirror

                        if (posEq(sel.from, sel.to)) matchBrackets(false);

                    }), 20);

                var tc = textChanged, cbs = callbacks; // these can be reset by callbacks

                if (selectionChanged && options.onCursorActivity)

                    options.onCursorActivity(instance);

                if (tc && options.onChange && instance)

                    options.onChange(instance, tc);

                for (var i = 0; i < cbs.length; ++i) cbs[i](instance);

                if (updated && options.onUpdate) options.onUpdate(instance);

            }

    • 笙默考试管理系统-MyExamTest----codemirror

            var nestedOperation = 0;

            function operation(f) {

                return function() {

                    if (!nestedOperation++) startOperation();

                    try {var result = f.apply(this, arguments);}

                    finally {if (!--nestedOperation) endOperation();}

                    return result;

                };

            }

            for (var ext in extensions)

                if (extensions.propertyIsEnumerable(ext) &&

                    !instance.propertyIsEnumerable(ext))

                    instance[ext] = extensions[ext];

            return instance;

        } // (end of function CodeMirror)

    • 笙默考试管理系统-MyExamTest----codemirror

        // The default configuration options.

        CodeMirror.defaults = {

            value: "",

            mode: null,

            theme: "default",

            indentUnit: 2,

            indentWithTabs: false,

            tabSize: 4,

            keyMap: "default",

            extraKeys: null,

            electricChars: true,

            onKeyEvent: null,

            lineWrapping: false,

            lineNumbers: false,

            gutter: false,

            fixedGutter: false,

            firstLineNumber: 1,

            readOnly: false,

            onChange: null,

            onCursorActivity: null,

            onGutterClick: null,

            onHighlightComplete: null,

            onUpdate: null,

            onFocus: null, onBlur: null, onScroll: null,

            matchBrackets: false,

            workTime: 100,

            workDelay: 200,

            pollInterval: 100,

            undoDepth: 40,

            tabindex: null,

            document: window.document

        };

  • 相关阅读:
    【Java高级】一篇文章带你搞懂线程
    【Java】LambdaStream
    Spring Cloud Gateway 集成Sa-Token
    1916. 统计为蚁群构筑房间的不同顺序 费马小定理+快速幂+DFS
    用“价值”的视角来看安全:《构建新型网络形态下的网络空间安全体系》
    爱奇艺大数据加速:从Hive到Spark SQL
    android service基本介绍
    Redis各数据类型特定的命令和用法 1.0版本
    Grafana+Prometheus+Pushgateway实现对emqx的监控
    MindSpore新型轻量级神经网络GhostNet,在ImageNet分类、图像识别和目标检测等多个应用场景效果优异!
  • 原文地址:https://blog.csdn.net/N201871643/article/details/132996009