• Gianina Skarlett
  • 0 Points
  • Member since 2019

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 1

I currently have an extension that has similar functionality to Google's autocomplete. This extension is intended to work in the Service Console in the Email tab (where an agent replies to tickets) but currently, I'm unable to access the body of this reply box. The problem I'm facing is:

1. The Email body in the salesforce tab is an iframe inside of an iframe with the src hidden for security reasons and if I query the element in a different way salesforce doesn't allow me to access the contentWindow of the iframe either since it's giving CSP errors. (this would be needed to attach keydown event).

More context:
I do understand how the LockerService works, however, I would like some clarification if creating a Lightning component inside of my extension with a controller would help me be able to somehow target that tab and listen to this event. Thank you
I have a Lightning Component which displays a <table> element after rendering.
I want to access the table and add a class to it, but for some reason it does not find the table.
Please help.
<aura:handler name="render" value="{!this}" action="{!c.onRender}"/>
onRender: function (component, event, helper) {
        var table = document.getElementsByTagName("table");
        if (table != undefined) {
getElementsByTagName does not find the table, why?