Issue #3443527 by godotislate, smustgrave: Setting empty URL when making embedded media a link in CKEditor5 causes JS errors
(cherry picked from commit 74f01afaa1
)
merge-requests/7514/merge
parent
dfcd148f25
commit
e71f1e9313
File diff suppressed because one or more lines are too long
|
@ -53,7 +53,7 @@ function upcastMediaLink() {
|
||||||
const linkHref = viewLink.getAttribute('href');
|
const linkHref = viewLink.getAttribute('href');
|
||||||
|
|
||||||
// Missing the `href` attribute.
|
// Missing the `href` attribute.
|
||||||
if (!linkHref) {
|
if (linkHref === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue