#431 Need help about image tags

This commit is contained in:
agriyadev5
2021-06-10 14:01:58 +05:30
parent 0583da9af8
commit 096abcb028
3 changed files with 25 additions and 12 deletions

View File

@@ -292,12 +292,14 @@ class TopPanel {
$id("g_panel").style.display = 'block';
}
// siblings
const selements = Array.prototype.filter.call(elem.parentNode.children, function(child){
return child !== elem;
});
if (elem.parentNode.tagName === "a" && !selements.length) {
$id("a_panel").style.display = 'block';
linkHref = this.editor.svgCanvas.getHref(elem.parentNode);
if (elem.parentNode) {
const selements = Array.prototype.filter.call(elem.parentNode.children, function(child){
return child !== elem;
});
if (elem.parentNode.tagName === "a" && !selements.length) {
$id("a_panel").style.display = 'block';
linkHref = this.editor.svgCanvas.getHref(elem.parentNode);
}
}
// Hide/show the make_link buttons