[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/js/ -> code-editor.js (summary)

(no description)

File Size: 342 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  configureLinting()
  updateErrorNotice()
  getLintOptions()
  configureTabbing()

Functions
Functions that are not part of a class:

configureLinting( editor, settings )   X-Ref
Configure linting.

param: {CodeMirror} editor - Editor.
param: {object}     settings - Code editor settings.
param: {object}     settings.codeMirror - Settings for CodeMirror.
param: {Function}   settings.onChangeLintingErrors - Callback for when there are changes to linting errors.
param: {Function}   settings.onUpdateErrorNotice - Callback to update error notice.
returns: {void}

updateErrorNotice()   X-Ref
Call the onUpdateErrorNotice if there are new errors to show.

returns: {void}

getLintOptions()   X-Ref
Get lint options.

returns: {object} Lint options.

configureTabbing( codemirror, settings )   X-Ref
Configure tabbing.

param: {CodeMirror} codemirror - Editor.
param: {object}     settings - Code editor settings.
param: {object}     settings.codeMirror - Settings for CodeMirror.
param: {Function}   settings.onTabNext - Callback to handle tabbing to the next tabbable element.
param: {Function}   settings.onTabPrevious - Callback to handle tabbing to the previous tabbable element.
returns: {void}



Generated: Tue Sep 17 01:00:03 2019 Cross-referenced by PHPXref 0.7.1