Replace CollaborativeString editing methods with event handlers.