有没有办法判断替换是否在搜索框中可见?

Is there a way to tell if the replace is visible in the search box?

有没有办法判断搜索框中的替换字段是否可见?

我目前正在使用以下方法检查搜索框是否可见:

var isVisible = editor.searchBox.element.style.display != "none";

它看起来有一个标志:

var isSearchVisible = editor.searchBox.element.style.display != "none";
var isReplace = editor.searchBox.isReplace;

var isReplaceVisible = isReplace && isSearchVisible;