笙默考试管理系统-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

    };

你可能感兴趣的:(笙默考试管理系统,前端,javascript,开发语言)