Would they continue to advance to take over all of Morocco and install a puppet government? Demand territorial concessions? Same for Morocco - if they're able to take the cities, what would Spain do? Let them have it? Invade Morocco?
At the very least a Demilitarized border between Morroco and Spanish enclaves. Spain might retain Ifni, who knows?