Simplified code on the formatter cell editor.