How to detect font and change font with JavaScript
Hello to all,
I'd like your help in how to get the font name and size of the selected text and then change the font name and color of all words with that font name and font size using JavaScript.
Below is a kind of pseudocode what I thought.
For example:
var f = this.selectedtext.fontname
var s = this.selectedtext.fontsize
for each word with font f and s{
word.fontname = "Helvetica"
word.fontcolor = blue
}
Thanks in advance for any help
