Skip to content

Commit cc4e5e4

Browse files
committed
Add comment about alignment bug
1 parent f274abc commit cc4e5e4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Sources/RichTextKit/Attributes/RichTextAttributeWriter+Alignment.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ import AppKit
1919
public extension RichTextAttributeWriter {
2020

2121
/// Set the rich text alignment at a certain range.
22+
///
23+
/// > Todo: Something's currently off with alignment. It
24+
/// spils over to other paragraphs when moving the input
25+
/// cursor and inserting new text.
2226
func setRichTextAlignment(
2327
_ alignment: RichTextAlignment,
2428
at range: NSRange

Sources/RichTextKit/Component/RichTextViewComponent+Alignment.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public extension RichTextViewComponent {
2525
}
2626

2727
/// Set the rich text alignment at current range.
28+
///
29+
/// > Todo: Something's currently off with alignment. It
30+
/// spils over to other paragraphs when moving the input
31+
/// cursor and inserting new text.
2832
func setRichTextAlignment(
2933
_ alignment: RichTextAlignment
3034
) {

0 commit comments

Comments
 (0)