Closed mishal closed 7 years ago
Maybe I could pass the whole XML tag structure. You could extract the attributes from it yourself but also have the possibility to do something more with the tag.
yes, that would be more flexible.
what name will be the best? (I can prepare the PR). simple tag: $tag
would work for me.
Yes, "tag" is OK.
PR #23
Our use case:
Js hook:
As per docs there are several properties of the event playload available, but there is no access to the original tag attributes (like in _onBeforeUnknown).
I patched the TDI function which triggers the event and includes the additional tag attributes. I can now access the tag attribute:
We use the attribute to decide if the UI should highlight another element. We used script instructions before, but it was problematic.
Could TDI include the additional/original tag attributes for update and insert instructions?