Skip to content

Commit 7228f07

Browse files
committed
bg-color-undefined: Fallback on event target.
1 parent 4ff5310 commit 7228f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assets/editor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9325,7 +9325,7 @@
93259325
// Use jQuery to figure out those that are not supported
93269326
if (typeof e != 'undefined') {
93279327
// The target element
9328-
var s = zss_editor.getSelectedNode();
9328+
var s = zss_editor.getSelectedNode() || e.target;
93299329
var t = $(s);
93309330
var nodeName = e.target.nodeName.toLowerCase();
93319331

0 commit comments

Comments
 (0)