When I put in a line break they don't show up when I save the text, I assume it's likely because the finalised text doesn't convert the newline character to
. This line and regex ".replace(/\n/g, "
");" should address that issue, I'm just not sure where it needs to go.