projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83d6245
)
Fixed empty editor behaving different on iOS
author
Alexander Ebert
<ebert@woltlab.com>
Fri, 5 Dec 2014 01:24:22 +0000
(
02:24
+0100)
committer
Alexander Ebert
<ebert@woltlab.com>
Fri, 5 Dec 2014 01:24:22 +0000
(
02:24
+0100)
com.woltlab.wcf/templates/wysiwyg.tpl
patch
|
blob
|
blame
|
history
diff --git
a/com.woltlab.wcf/templates/wysiwyg.tpl
b/com.woltlab.wcf/templates/wysiwyg.tpl
index 637fab6549445bf7e67c197ec55cf6f5be1158c4..8ce0bcca0e18f4c3ef53bce6d047260c502be664 100644
(file)
--- 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 = '<p><br></p>';
+ }
+
{if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()}
$config.plugins.push('wupload');
$config.woltlab.attachmentUrl = '{link controller='Attachment' id=987654321}{/link}';