Update editor/set-line to CodeMirror 4 API

As noted in #1359, `lt.objs.editor/set-line` currently wraps the CodeMirror method `.setLine`, which has been ~~deprecated~~ dropped as of version 4.

This patch provides equivalent functionality via `editor/replace`.