MDL-40493 editorlib: Update editor_get_preferred_format

This change makes the editor_get_preferred_format function
return the preferred format of the users preferred editor.