applescript - Javascript to fill a formatted text field on a web site -
i know virtually nothing javascript. monkey-see, monkey-do approach i’ve managed use javascript within applescript/safari fill text fields on web-site using following command: do javascript "document.getelementbyid('elementid').value ='texttoenter';" in document 1 i’ve been able enter text fields except one. fields work labeled input type="text” . field doesn’t work complex in entered text can formatted (bold, italics, underline, alignment, etc.) after entry. assuming i’ve identified correct source code element looks follows prior text entry: <body id="tinymce" class="mce-content-body " onload="window.parent.tinymce.get('fax_text').fire('load');" contenteditable="true" spellcheck="false"><p><br data-mce-bogus="1"></p></body> depending on how viewed, p , br tags appear on separate lines otherwise identical. after manual entry of tex