add formatStyle function in editor