extract code editor support widget into partial