-
-
Notifications
You must be signed in to change notification settings - Fork 778
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
964 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...s/Source Editor/Formatter Extensions/WKSourceEditorFormatterSubscript+ButtonActions.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Foundation | ||
import ComponentsObjC | ||
|
||
extension WKSourceEditorFormatterSubscript { | ||
func toggleSubscriptFormatting(action: WKSourceEditorFormatterButtonAction, in textView: UITextView) { | ||
toggleFormatting(startingFormattingString: "<sub>", endingFormattingString: "</sub>", action: action, in: textView) | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...Source Editor/Formatter Extensions/WKSourceEditorFormatterSuperscript+ButtonActions.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Foundation | ||
import ComponentsObjC | ||
|
||
extension WKSourceEditorFormatterSuperscript { | ||
func toggleSuperscriptFormatting(action: WKSourceEditorFormatterButtonAction, in textView: UITextView) { | ||
toggleFormatting(startingFormattingString: "<sup>", endingFormattingString: "</sup>", action: action, in: textView) | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...s/Source Editor/Formatter Extensions/WKSourceEditorFormatterUnderline+ButtonActions.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Foundation | ||
import ComponentsObjC | ||
|
||
extension WKSourceEditorFormatterUnderline { | ||
func toggleUnderlineFormatting(action: WKSourceEditorFormatterButtonAction, in textView: UITextView) { | ||
toggleFormatting(startingFormattingString: "<u>", endingFormattingString: "</u>", action: action, in: textView) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Components/Sources/ComponentsObjC/WKSourceEditorFormatterSubscript.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#import "WKSourceEditorFormatter.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface WKSourceEditorFormatterSubscript: WKSourceEditorFormatter | ||
|
||
- (BOOL) attributedString:(NSMutableAttributedString *)attributedString isSubscriptInRange:(NSRange)range; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.