For ED VISA (not ED-PLUS), it’s very high chance that you have to leave Thailand for submit a Non-B visa at Thai Embassy in Vietnam first.