[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

File Size: 346 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.

return: {void}
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.

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

return: {void}

getLintOptions()   X-Ref
Get lint options.

return: {Object} Lint options.

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

return: {void}
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.



Generated: Thu Dec 26 01:00:02 2024 Cross-referenced by PHPXref 0.7.1