Adding css & js files to the editor field

it has a shadowRoot, so normal appended files wont affect its content, and i’ve tried .replace() on the body of the html, but this doesn’t seem to work either, so i’m assuming the html hasn’t been generated by the ts/js file at the time of the webview_will_set_content hook

how would I go about this? I was also going to just copy then modify the editingArea.ts (and any other files needed) and then just monkeypatch the link to them in python, but there doesn’t seem to be a link to them anywhere in python? (how is index.ts imported into anki?). is it possible to modify the editingArea.ts any other way