mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 08:09:58 +09:00
Make enter key insert a BR tag instead of P when used on iOS
This commit is contained in:
parent
0777a66703
commit
43f3d41543
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
<!--@if($enable_component)-->
|
||||
{@ $xe_component = array(); }
|
||||
<!--@foreach($component_list as $component_name => $component)-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue