From 43f3d4154338041de5d527b82f5bc576a866e906 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 8 Apr 2017 17:22:00 +0900 Subject: [PATCH] Make enter key insert a BR tag instead of P when used on iOS --- modules/editor/skins/ckeditor/editor.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/editor/skins/ckeditor/editor.html b/modules/editor/skins/ckeditor/editor.html index 82c7fcb4e..640b9a7e5 100644 --- a/modules/editor/skins/ckeditor/editor.html +++ b/modules/editor/skins/ckeditor/editor.html @@ -106,7 +106,12 @@ var auto_saved_msg = "{$lang->msg_auto_saved}"; enableToolbar: true, content_field: jQuery('[name={$editor_content_key_name}]') }; - + + if (navigator.userAgent.match(/i(OS|Phone|Pad)/)) { + settings.ckeconfig.enterMode = CKEDITOR.ENTER_BR; + settings.ckeconfig.shiftEnterMode = CKEDITOR.ENTER_P; + } + {@ $xe_component = array(); }