diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index d2203760451f..0a1c06f3f767 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -1139,7 +1139,7 @@ function GetBackgroundElementWithColor() if (selection) { element = selection.focusNode; - while (!gEditor.NodeIsBlock(element)) + while (!gEditor.nodeIsBlock(element)) element = element.parentNode; } else