Skip to content

Commit

Permalink
Bug fixes from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisevener committed Jan 8, 2024
1 parent 8813839 commit 742404d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ final class WKSourceEditorTextFrameworkMediator: NSObject {
listFormatter,
strikethroughFormatter]

self.boldItalicsFormatter = boldItalicsFormatter
self.templateFormatter = templateFormatter
self.listFormatter = listFormatter
self.strikethroughFormatter = strikethroughFormatter

if needsTextKit2 {
if #available(iOS 16.0, *) {
let textContentManager = textView.textLayoutManager?.textContentManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ - (void)addSyntaxHighlightingToAttributedString:(NSMutableAttributedString *)att

// reset shared custom attributes
[attributedString removeAttribute:WKSourceEditorCustomKeyColorGreen range:range];
[attributedString removeAttribute:WKSourceEditorCustomKeyColorOrange range:range];

[attributedString addAttributes:self.attributes range:range];
}
Expand Down

0 comments on commit 742404d

Please sign in to comment.