feat(controller): add contenteditable to DEFAULT_INCLUDE_ATTRIBUTES

This commit is contained in:
Simon
2026-03-09 19:15:51 +08:00
parent 928d8d2fb3
commit 4b37a3e538

View File

@@ -140,10 +140,13 @@ export function flatTreeToString(flatTree: FlatDomTree, includeAttributes?: stri
// for jump check // for jump check
'target', 'target',
// absolute 定位的下拉菜单 // absolute position dropdown menu
'aria-haspopup', 'aria-haspopup',
'aria-controls', 'aria-controls',
'aria-owns', 'aria-owns',
// content editable
'contenteditable',
] ]
const includeAttrs = [...(includeAttributes || []), ...DEFAULT_INCLUDE_ATTRIBUTES] const includeAttrs = [...(includeAttributes || []), ...DEFAULT_INCLUDE_ATTRIBUTES]