tiny_link/ui

Tiny Link UI.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) handleAction

Source:

Handle action.

Methods

(async, inner) displayDialogue(editor) → {Promise.<void>}

Source:

Display the link dialogue.

Parameters:
Name Type Description
editor TinyMCE
Returns:
Type
Promise.<void>

(inner) filePickerCallback(params, currentForm, editor)

Source:

Update the dialogue after a link was selected in the File Picker.

Parameters:
Name Type Description
params Object
currentForm Element
editor TinyMCE

(inner) getTemplateContext(editor) → {Object}

Source:

Get template context.

Parameters:
Name Type Description
editor TinyMCE
Returns:
Type
Object

(inner) updateTextToDisplay(currentForm)

Source:

Update the text to display if the user does not provide the custom text.

Parameters:
Name Type Description
currentForm Element