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

@nicole81813 you can apply it to dynamic elements and repeaters as well.
Let’s say you have a field key “description” in your database collection, and you wish to change the line-height of the description.
Then you can (for example) do something like this:

  1. connect the repeater rich text element to the dateset “description” field.

  2. Add this code:

$w.onReady(() => {
    $w("#dataset1").onReady(() => {
        $w("#repeater1").onItemReady($item => {
            $item("#description").html =
            `<span style="line-height:1.8px">${$item("#description").text}</span>`;
        })
    })
})