Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix line at the top of text editor #29

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
32 changes: 17 additions & 15 deletions EGOTextView/EGOTextView.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern NSString * const EGOTextAttachmentPlaceholderString;
UITextInputStringTokenizer *_tokenizer;
UITextChecker *_textChecker;
UILongPressGestureRecognizer *_longPress;

BOOL _ignoreSelectionMenu;
BOOL _delegateRespondsToShouldBeginEditing;
BOOL _delegateRespondsToShouldEndEditing;
Expand All @@ -79,47 +79,49 @@ extern NSString * const EGOTextAttachmentPlaceholderString;
BOOL _delegateRespondsToDidChange;
BOOL _delegateRespondsToDidChangeSelection;
BOOL _delegateRespondsToDidSelectURL;

NSAttributedString *_attributedString;
UIFont *_font;
UIFont *_font;
BOOL _editing;
BOOL _editable;
BOOL _editable;
BOOL _spellCheck;
BOOL _dataDetectors;
NSRange _markedRange;

NSRange _markedRange;
NSRange _selectedRange;
NSRange _correctionRange;
NSRange _linkRange;

CTFramesetterRef _framesetter;
CTFrameRef _frame;

EGOContentView *_textContentView;
EGOTextWindow *_textWindow;
EGOCaretView *_caretView;
EGOSelectionView *_selectionView;

NSMutableArray *_attachmentViews;

}

@property(nonatomic) UIDataDetectorTypes dataDetectorTypes; // UIDataDetectorTypeLink supported
@property(nonatomic) UITextAutocapitalizationType autocapitalizationType;
@property(nonatomic) UITextAutocorrectionType autocorrectionType;
@property(nonatomic) UIKeyboardType keyboardType;
@property(nonatomic) UIKeyboardAppearance keyboardAppearance;
@property(nonatomic) UIReturnKeyType returnKeyType;
@property(nonatomic) BOOL enablesReturnKeyAutomatically;
@property(nonatomic) UITextAutocorrectionType autocorrectionType;
@property(nonatomic) UIKeyboardType keyboardType;
@property(nonatomic) UIKeyboardAppearance keyboardAppearance;
@property(nonatomic) UIReturnKeyType returnKeyType;
@property(nonatomic) BOOL enablesReturnKeyAutomatically;

@property(nonatomic,assign) id <EGOTextViewDelegate> delegate;
@property(nonatomic,copy) NSAttributedString *attributedString;
@property(nonatomic,copy) NSString *text;
@property(nonatomic,retain) UIFont *font; // ignored when attributedString is not nil
@property(nonatomic,getter=isEditable) BOOL editable; //default YES
@property(nonatomic) BOOL correctable; //default YES
@property(nonatomic) NSRange selectedRange;
@property(nonatomic) NSRange markedRange;

- (BOOL)hasText;
- (void)replaceNSRange:(NSRange)range withText:(NSString *)text;

@end
@end
Loading