Skip to content
This repository was archived by the owner on Dec 13, 2017. It is now read-only.

Commit c8bccc2

Browse files
committed
Disable smart quotes and smart dashes on legacy editor.
1 parent 4dd9014 commit c8bccc2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Classes/WPLegacyEditorViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ - (void)setupTextView
202202
self.textView.font = self.bodyFont;
203203
self.textView.textColor = self.bodyColor;
204204
self.textView.accessibilityLabel = NSLocalizedString(@"Content", @"Post content");
205+
206+
if (@available(iOS 11.0, *)) {
207+
self.textView.smartQuotesType = UITextSmartQuotesTypeNo;
208+
self.textView.smartDashesType = UITextSmartDashesTypeNo;
209+
}
205210
}
206211
[self.view addSubview:self.textView];
207212

0 commit comments

Comments
 (0)