#38 The opacity button does not update with the current element
parent
11c4f73968
commit
08032c4096
|
@ -596,6 +596,8 @@ class Editor extends EditorStartup {
|
||||||
|
|
||||||
// All elements including image and group have opacity
|
// All elements including image and group have opacity
|
||||||
if (!isNullish(this.selectedElement)) {
|
if (!isNullish(this.selectedElement)) {
|
||||||
|
const opacPerc = (this.selectedElement.getAttribute('opacity') || 1.0) * 100;
|
||||||
|
$id('opacity').value = opacPerc;
|
||||||
$id('elem_id').value = this.selectedElement.id;
|
$id('elem_id').value = this.selectedElement.id;
|
||||||
$id('elem_class').value =
|
$id('elem_class').value =
|
||||||
(this.selectedElement.getAttribute('class') !== null) ? this.selectedElement.getAttribute('class') : '';
|
(this.selectedElement.getAttribute('class') !== null) ? this.selectedElement.getAttribute('class') : '';
|
||||||
|
|
Loading…
Reference in New Issue