From: Alexander Ebert Date: Fri, 5 Dec 2014 01:24:22 +0000 (+0100) Subject: Fixed empty editor behaving different on iOS X-Git-Tag: 2.1.0_Beta_1~97 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=65616750f66ec4092fb5eb58b0f67185df0f6d7f;p=GitHub%2FWoltLab%2FWCF.git Fixed empty editor behaving different on iOS --- diff --git a/com.woltlab.wcf/templates/wysiwyg.tpl b/com.woltlab.wcf/templates/wysiwyg.tpl index 637fab6549..8ce0bcca0e 100644 --- a/com.woltlab.wcf/templates/wysiwyg.tpl +++ b/com.woltlab.wcf/templates/wysiwyg.tpl @@ -69,6 +69,11 @@ $(function() { } }; + if ($.browser.iOS) { + // using a zero-width space breaks iOS' detection of the start of a sentence, causing the first word to be lowercased + $config.emptyHtml = '


'; + } + {if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()} $config.plugins.push('wupload'); $config.woltlab.attachmentUrl = '{link controller='Attachment' id=987654321}{/link}';