[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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.

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

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.

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



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref