How to add line-height code for Rich Editor content manager text?

You’re in the right direction but you only added half of the html string.
it should be something like:

let text = 'this is my text'; //change it to your text.
$w('#shortDescription').html = `<span style="line-height:1.8px">${text}</span>`;