Allow set allSelectedText to null to disable allSelectedText