nnhubbard / ZSSRichTextEditor

A beautiful rich text WYSIWYG editor for iOS with a syntax highlighted source view
MIT License
3.78k stars 584 forks source link

Mentions and hashtags support #131

Closed yaroslavYS closed 8 years ago

yaroslavYS commented 8 years ago

Are you planning to support mentions and hashtags? I mean fire event when user start typing word starting @ or # symbol or change caret position to such word and ability to replace(or insert) autocompleted mention or tag

nnhubbard commented 8 years ago

No, I really don't have time to work on this library right now. Feel free to submit a pull request!

ghost commented 8 years ago

@Deliany I will work on adding a feature that fires an event when a word that starts with @ or # is typed.

ghost commented 8 years ago

@Deliany I have added this feature, you can receive these events using the following methods in your subclassed ZSSRichTextEditor:

- (void)hashtagRecognizedWithWord:(NSString *)word {

    NSLog(@"Hashtag has been recognized: %@", word);

}

- (void)mentionRecognizedWithWord:(NSString *)word {

    NSLog(@"Mention has been recognized: %@", word);

}