diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index 2f39f30e38b3..3a42d529ffde 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -1121,12 +1121,9 @@ function GetBackgroundElementWithColor() gColorObj.SelectedType = ""; var tagNameObj = { value: "" }; - var numSelected; var element; try { - var elt = { value: null }; - numSelected = gEditor.getSelectedOrParentTableElement(elt, tagNameObj); - element = elt.value; + element = gEditor.getSelectedOrParentTableElement(tagNameObj, {value:0}); } catch(e) {}