@zogstrip can @andrei take this? It is likely related to the other feature that injects newlines.
Also need to be careful here to determine if the bug pops up when we first inject the placeholder or after we replace the placeholder with the upload. My gut is that it pops up once the placeholder is added.
Moving to a dedicated bug.