You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to extend TableNode by overriding it with my CustomTableNode that will include some properties for the entire table. Based on that properties the class attribute will be changes (some classes added to the table element)
Everything works fine so far except TableObserver. It doesn't include attributes or attributeFilter options, so it doesn't react on any class changes on table element.
Would it be possible to add attributes into the options? I am not too familiar with details and may miss some caveats.
P.S. I've tried to enabled updateDOM in the CustomTableNode but it seems to break observer in some way, selection and some other stuff start to work flaky.
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to extend
TableNode
by overriding it with myCustomTableNode
that will include some properties for the entire table. Based on that properties the class attribute will be changes (some classes added to the table element)Everything works fine so far except
TableObserver
. It doesn't includeattributes
orattributeFilter
options, so it doesn't react on any class changes ontable
element.Would it be possible to add
attributes
into the options? I am not too familiar with details and may miss some caveats.lexical/packages/lexical-table/src/LexicalTableObserver.ts
Lines 153 to 156 in cad2861
P.S. I've tried to enabled
updateDOM
in theCustomTableNode
but it seems to break observer in some way, selection and some other stuff start to work flaky.The text was updated successfully, but these errors were encountered: