- Description:
Tiny media plugin helpers for image and embed.
- Source:
- Copyright:
- 2024 Stevani Andolo
- 2024 Stevani Andolo
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Tiny media plugin helpers for image and embed.
Members
(static, constant) body
- Description:
Renders and inserts the body template for inserting an media into the modal.
- Source:
Renders and inserts the body template for inserting an media into the modal.
(static, constant) footer
- Description:
Renders and inserts the footer template for inserting an media into the modal.
- Source:
Renders and inserts the footer template for inserting an media into the modal.
(static, constant) getFileName
- Description:
Get filename from the name label.
- Source:
Get filename from the name label.
(static, constant) hideElements
- Description:
Hide the element(s).
- Source:
Hide the element(s).
(static, constant) isExternalUrl
- Description:
Return true or false if the url is external.
- Source:
Return true or false if the url is external.
(static, constant) isPercentageValue
- Description:
Return true or false if % is found.
- Source:
Return true or false if % is found.
(static, constant) isValidUrl
- Description:
Check if given string is a valid URL.
- Source:
Check if given string is a valid URL.
(static, constant) setFilenameLabel
- Description:
Set the string for the URL label element.
- Source:
Set the string for the URL label element.
(static, constant) setPropertiesFromData
- Description:
Set extra properties on an instance using incoming data.
- Source:
Set extra properties on an instance using incoming data.
(static, constant) showElements
- Description:
Show the element(s).
- Source:
Show the element(s).
(static, constant) sourceTypeChecked
- Description:
This function checks whether an image URL is local (within the same website's domain) or external (from an external source). Depending on the result, it dynamically updates the visibility and content of HTML elements in a user interface. If the image is local then we only show it's filename. If the image is external then it will show full URL and it can be updated.
- Source:
This function checks whether an image URL is local (within the same website's domain) or external (from an external source). Depending on the result, it dynamically updates the visibility and content of HTML elements in a user interface. If the image is local then we only show it's filename. If the image is external then it will show full URL and it can be updated.
(static, constant) startMediaLoading
- Description:
Displays the upload loader and disables UI elements while loading a file.
- Source:
Displays the upload loader and disables UI elements while loading a file.
(static, constant) stopMediaLoading
- Description:
Hide the upload loader and enable UI elements when loaded.
- Source:
Hide the upload loader and enable UI elements when loaded.