3 Replies Latest reply on Nov 30, 2012 11:23 AM by heathrowe

    Add a parameter/value inside an object

    Franck Payen MVP & Adobe Community Professional


      I'm working with a developer and he asks if it's possible for me to add an attribute to each element in Edge, which would be a simple number


      <div id="Stage_TexteA" style="position: absolute; margin: 0px; left: 179.08px; top: 59px; width: 125px; height: 46px; right: auto; bottom: auto; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 24px; color: rgb(0, 0, 0); font-weight: normal; text-decoration: initial;" class="Stage_TexteA_id classetexteA" title="titre_accessible" tabindex="5">Texte A</div>


      Since we can't set numbers for ids, he'd want something like :


      <div id="Stage_TexteA" style="(…)" class="Stage_TexteA_id classetexteA" title="titre_accessible" tabindex="5" data-id="42">Texte A</div>


      I know i cannot get this via the UI, but i can't seem to find a right place inside the edge.js file


      in the first content/dom i tried








                  text:"Texte A",


                  font:['Arial, Helvetica, sans-serif',24,"rgba(0,0,0,1)","normal","none",""]



      and later in the baseline states :


      "${_TexteA}": [

                  ["style", "left", '179.08px'],

                  ["attr", "data-id", '42']



      Is this something doable ?


      Or will he still have to parse element_42 to get that number ?