mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-07 13:55:55 +01:00
Include alt text and title for images added to the editor (#2098)
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# v1.10.8
|
# v1.10.8
|
||||||
## mm/dd/2021
|
## mm/dd/2021
|
||||||
|
|
||||||
|
1. [](#improved)
|
||||||
|
* Include alt text and title for images added to the editor [#2098](https://github.com/getgrav/grav-plugin-admin/issues/2098)
|
||||||
1. [](#bugfix)
|
1. [](#bugfix)
|
||||||
* Fixed issue replacing `wildcard` field names in flex collections [#2092](https://github.com/getgrav/grav-plugin-admin/pull/2092)
|
* Fixed issue replacing `wildcard` field names in flex collections [#2092](https://github.com/getgrav/grav-plugin-admin/pull/2092)
|
||||||
|
|
||||||
|
|||||||
@@ -335,7 +335,9 @@ export function UriToMarkdown(uri) {
|
|||||||
uri = uri.replace(/\(/g, '%28');
|
uri = uri.replace(/\(/g, '%28');
|
||||||
uri = uri.replace(/\)/g, '%29');
|
uri = uri.replace(/\)/g, '%29');
|
||||||
|
|
||||||
return uri.match(/\.(jpe?g|png|gif|svg|mp4|webm|ogv|mov)$/i) ? `` : `[${decodeURI(uri)}](${uri})`;
|
const title = uri.split('.').slice(0, -1).join('.');
|
||||||
|
|
||||||
|
return uri.match(/\.(jpe?g|png|gif|svg|mp4|webm|ogv|mov)$/i) ? `` : `[${decodeURI(uri)}](${uri})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
let instances = [];
|
let instances = [];
|
||||||
|
|||||||
4
themes/grav/js/admin.min.js
vendored
4
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user