- Source:
Members
-
<static> defaultSettings :object
-
Default settings for code editor.
Type:
- object
- Since:
-
- 4.9.0
- Source:
Methods
-
<static> initialize(textarea [, settings])
-
Initialize Code Editor (CodeMirror) for an existing textarea.
Parameters:
Name Type Argument Description textareastring | jQuery | Element The HTML id, jQuery object, or DOM Element for the textarea that is used for the editor. settingsobject <optional>
Settings to override defaults. Properties
Name Type Argument Description onChangeLintingErrorsfunction <optional>
Callback for when the linting errors have changed. onUpdateErrorNoticefunction <optional>
Callback for when error notice should be displayed. onTabPreviousfunction <optional>
Callback to handle tabbing to the previous tabbable element. onTabNextfunction <optional>
Callback to handle tabbing to the next tabbable element. codemirrorobject <optional>
Options for CodeMirror. csslintobject <optional>
Rules for CSSLint. htmlhintobject <optional>
Rules for HTMLHint. jshintobject <optional>
Rules for JSHint. - Since:
-
- 4.9.0
- Source:
Returns:
Instance.- Type
- CodeEditorInstance
Type Definitions
-
CodeEditorInstance
-
Type:
- object
- Source:
Properties:
Name Type Description settingsobject The code editor settings. codemirrorCodeMirror The CodeMirror instance.