tiny_h5p/ui

Description:
  • Tiny H5P Content configuration.

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

Tiny H5P Content configuration.

Methods

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

Description:
  • Get the template context for the dialogue.

Source:
Parameters:
Name Type Description
editor Editor
data object
Returns:

data

Type
object

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

Description:
  • Get the URL from the submitted form.

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

(inner) isValidUrl(url) → {boolean}

Description:
  • Verify if this could be a h5p URL.

Source:
Parameters:
Name Type Description
url string

Url to verify

Returns:

whether this is a valid URL.

Type
boolean