I can not run 'sudo gedit' in 13.1 gnome evironment

~> sudo gedit 
root's password:
error: XDG_RUNTIME_DIR not set in the environment.
Unable to init server

(gedit:4375): Gtk-WARNING **: cannot open display: 

How to do with it? thanks

The following will work

gnomesu gedit

or

xdg-su -c gedit