Fixed empty editor behaving different on iOS
authorAlexander Ebert <ebert@woltlab.com>
Fri, 5 Dec 2014 01:24:22 +0000 (02:24 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 5 Dec 2014 01:24:22 +0000 (02:24 +0100)
com.woltlab.wcf/templates/wysiwyg.tpl

index 637fab6549445bf7e67c197ec55cf6f5be1158c4..8ce0bcca0e18f4c3ef53bce6d047260c502be664 100644 (file)
@@ -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 = '<p><br></p>';
+               }
+               
                {if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()}
                        $config.plugins.push('wupload');
                        $config.woltlab.attachmentUrl = '{link controller='Attachment' id=987654321}{/link}';