[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> format-library.js (summary)

WordPress dependencies

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

Defines 41 functions

  onToggle()
  onClick()
  onClick()
  InlineUI()
  Edit()
  openModal()
  closeModal()
  onToggle()
  onClick()
  isValidHref()
  createLinkFormat()
  getFormatBoundary()
  walkToBoundary()
  getKey()
  useLinkInstanceKey()
  InlineLinkUI()
  removeLink()
  onChangeLink()
  createButtonText()
  getRichTextValueFromSelection()
  link_Edit()
  addLink()
  stopAddingLink()
  onRemoveFormat()
  onClick()
  Icon()
  parseCSS()
  parseClassName()
  getActiveColors()
  setColors()
  ColorPicker()
  InlineColorUI()
  getComputedStyleProperty()
  fillComputedColors()
  TextColorEdit()
  onToggle()
  onClick()
  onToggle()
  onClick()
  onToggle()
  onClick()

Functions
Functions that are not part of a class:

onToggle()   X-Ref
No description

onClick()   X-Ref
No description

onClick()   X-Ref
No description

InlineUI(_ref)   X-Ref
No description

Edit(_ref2)   X-Ref
No description

openModal()   X-Ref
No description

closeModal()   X-Ref
No description

onToggle()   X-Ref
No description

onClick()   X-Ref
No description

isValidHref(href)   X-Ref
Check for issues with the provided href.

param: {string} href The href.
return: {boolean} Is the href invalid?

createLinkFormat(_ref)   X-Ref
Generates the format object that will be applied to the link text.

param: {Object}  options
param: {string}  options.url              The href of the link.
param: {string}  options.type             The type of the link.
param: {string}  options.id               The ID of the link.
param: {boolean} options.opensInNewWindow Whether this link will open in a new window.
return: {Object} The final format object.

getFormatBoundary(value, format)   X-Ref
No description

walkToBoundary(formats, initialIndex, targetFormatRef, formatIndex, direction)   X-Ref
Walks forwards/backwards towards the boundary of a given format within an
array of format objects. Returns the index of the boundary.

param: {Array}  formats         the formats to search for the given format type.
param: {number} initialIndex    the starting index from which to walk.
param: {Object} targetFormatRef a reference to the format type object being sought.
param: {number} formatIndex     the index at which we expect the target format object to be.
param: {string} direction       either 'forwards' or 'backwards' to indicate the direction.
return: {number} the index of the boundary of the given format.

getKey(_id)   X-Ref
No description

useLinkInstanceKey(instance)   X-Ref
Builds a unique link control key for the given object reference.

param: {Object} instance an unique object reference specific to this link control instance.
return: {string} the unique key to use for this link control.

InlineLinkUI(_ref)   X-Ref
No description

removeLink()   X-Ref
No description

onChangeLink(nextValue)   X-Ref
No description

createButtonText(searchTerm)   X-Ref
No description

getRichTextValueFromSelection(value, isActive)   X-Ref
No description

link_Edit(_ref)   X-Ref
No description

addLink()   X-Ref
No description

stopAddingLink()   X-Ref
No description

onRemoveFormat()   X-Ref
No description

onClick()   X-Ref
No description

Icon(_ref)   X-Ref
Return an SVG icon.

param: {IconProps} props icon is the SVG component to render
return: {JSX.Element}  Icon component

parseCSS()   X-Ref
No description

parseClassName()   X-Ref
No description

getActiveColors(value, name, colorSettings)   X-Ref
No description

setColors(value, name, colorSettings, colors)   X-Ref
No description

ColorPicker(_ref)   X-Ref
No description

InlineColorUI(_ref2)   X-Ref
No description

getComputedStyleProperty(element, property)   X-Ref
No description

fillComputedColors(element, _ref)   X-Ref
No description

TextColorEdit(_ref2)   X-Ref
No description

onToggle()   X-Ref
No description

onClick()   X-Ref
No description

onToggle()   X-Ref
No description

onClick()   X-Ref
No description

onToggle()   X-Ref
No description

onClick()   X-Ref
No description



Generated: Thu Aug 11 01:00:03 2022 Cross-referenced by PHPXref 0.7.1