Adds an editor directive