Fixed missing "$" in exitToLegacyEditor (#1776)