tiny_h5p/ui

Tiny H5P Content configuration.

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

Methods

(inner) getTemplateContext(editor, data) → {object}

Source:

Get the template context for the dialogue.

Parameters:
Name Type Description
editor Editor
data object
Returns:

data

Type
object

(inner) getUrlFromSubmission(form, submittedUrl) → {URL|null}

Source:

Get the URL from the submitted form.

Parameters:
Name Type Description
form FormNode
submittedUrl string
Returns:
Type
URL | null

(inner) isValidUrl(url) → {boolean}

Source:

Verify if this could be a h5p URL.

Parameters:
Name Type Description
url string

Url to verify

Returns:

whether this is a valid URL.

Type
boolean