I'm not quite sure what problem you are describing. Doing `.join("\n")` on the array in the change event will give you the precise text that was inserted. If auto-indent happens, it will be included in a change event (possibly a second one, depending on how it was triggered).