X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/72984673067a37a1ea687709a33b18263f850633..685a35524a6e4f91155008e9850049feff298593:/app/helpers/application_helper.rb diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2ccfcca2b..c24e7ff5b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -119,6 +119,16 @@ module ApplicationHelper end end + def preferred_editor + if params[:editor] + params[:editor] + elsif @user and @user.preferred_editor + @user.preferred_editor + else + DEFAULT_EDITOR + end + end + private def javascript_strings_for_key(key)