selectedPosition attribute fixes
Return \n instead of unicode paragraph separator