OK. You are right, and I do apologize.
I traced back my steps, and found that the scrolling issue which causes the user to be catapulted somewhere into the middle of the draft after the line deletion happens on the iPad in landscape mode.
On the iPhone there is another issue: if I delete the line by putting the cursor at the start of the line, swiping left to the action list and tapping on the delete line action it works perfectly (although it is the paragraph, not the line which is deleted - see below). If however, I put the cursor at the start of the line, and tap on the delete line action on the sliding menu at the bottom of my draft, then the action is followed by a scroll which sends me somewhere in the draft and forces me to retrace my steps.
I don’t know how you define ‘line’, the following deletes the entire paragraph (multiple lines- the deletion stops where there is a new line) which is even better for my use, so thank you for the script. Fearing another reprimand and being banned from this forum,I tested it a gazillion times to make sure that the paragraph is indeed deleted.
let [st, len] = editor.getSelectedLineRange();
editor.setTextInRange(st, len, “”);
Once again, let me reiterate that I greatly appreciate your comments including your well worded and completely appropriate small reprimands.