HuangXianwei

Results 2 issues of HuangXianwei

焦点目标可以通过document.activeElement获取。 当编辑区存在图片时,失焦和聚焦会有一个问题: 第一步点击编辑区A的文本,可以正常获取焦点对象,activeElement为当前编辑区A的dom。 第二步点击编辑区A的图片,焦点对象activeElement 变为 document.body(整个文档的默认焦点是聚焦在body上)。 第三步点击编辑区A的文本,焦点对象activeElement 还是document.body,并不是编辑区A的文本区域焦点。 因此onBlur和onFocus会存在失焦和聚焦时,出现逻辑与表现行为不一致。 疑似编辑器设计问题,请核对是否存在编辑器设计bug,还是浏览器默认行为,有什么解决方法吗?

## selection coordinate error the position of code: **MouseSelection** -> **componentDidMount** ``` let containerBoundingRect: DOMRect | null = null; const containerCoords = (pageX: number, pageY: number) => { if (!containerBoundingRect)...