mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Remove enterkey plugin for CKEditor on iOS
- xpressengine/xe-core#2207 - rhymix/rhymix#932 - 실제 이 패치로 해결될 것 같지는 않으나 일단 XE와 맞춤
This commit is contained in:
parent
ed3696ae93
commit
dd93a40e05
1 changed files with 4 additions and 6 deletions
|
|
@ -112,12 +112,6 @@ var auto_saved_msg = "{$lang->msg_auto_saved}";
|
|||
content_field: jQuery('[name={$editor_content_key_name}]')
|
||||
};
|
||||
|
||||
// Temporary workaround for line break bug in recent versions of iOS.
|
||||
if (navigator.userAgent.match(/i(OS|Phone|Pad)/)) {
|
||||
settings.ckeconfig.enterMode = CKEDITOR.ENTER_BR;
|
||||
settings.ckeconfig.shiftEnterMode = CKEDITOR.ENTER_P;
|
||||
}
|
||||
|
||||
// Prevent removal of icon fonts and Google code.
|
||||
CKEDITOR.dtd.$removeEmpty.i = 0;
|
||||
CKEDITOR.dtd.$removeEmpty.ins = 0;
|
||||
|
|
@ -150,6 +144,10 @@ var auto_saved_msg = "{$lang->msg_auto_saved}";
|
|||
<!--@if($editor_remove_plugins)-->
|
||||
settings.ckeconfig.removePlugins = {json_encode(implode(',', $editor_remove_plugins))};
|
||||
<!--@endif-->
|
||||
|
||||
if (CKEDITOR.env.iOS) {
|
||||
settings.ckeconfig.removePlugins = settings.ckeconfig.removePlugins ? (settings.ckeconfig.removePlugins + ',enterkey') : '';
|
||||
}
|
||||
|
||||
<!--@if($editor_toolbar === 'simple')-->
|
||||
settings.ckeconfig.toolbar = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue