chudkins / DSF

A script to automate working with EFI's Digital StoreFront
GNU General Public License v3.0
0 stars 0 forks source link

Set-RichTextField needs to handle formatted text #5

Open chudkins opened 5 years ago

chudkins commented 5 years ago

It works in a rudimentary way, by invoking the iFrame's Click() event, which causes it to set focus on the text field. In the future, we will want to be able to input formatted text, so this function will need to be revamped after the rest of the script is actually working.

chudkins commented 5 years ago

This cannot be implemented until script handles Excel files, as CSV files don't include any formatting.

chudkins commented 5 years ago

Looking at exported data via Query tool, it seems text formatting is HTML style, so things like <strong> appear. This absolutely can be found in CSV, as that's what comes out of the Query tool. Maybe we can detect if any <> angle brackets are found in the text, and if so we treat it as formatting and use the HTML widget on the rich text editor.

Further, it seems DSF includes the unformatted text in an HTML comment. I don't know if that's used anywhere -- maybe the mobile version?