rewrite drag in editor