rinov / regeributedtextview Goto Github PK
View Code? Open in Web Editor NEWRegeributedTextView is a subclass of UITextView that supports fully attribute string based on regular expression.
License: MIT License
RegeributedTextView is a subclass of UITextView that supports fully attribute string based on regular expression.
License: MIT License
@rinov こんばんわ!
RegeributedTextViewすごく使いやすいです!ありがとうございます!
アレンジしたいのですが、ご教授ください。
RegeributedTextView.textに追加したメンションをクリックで選択したら、メンションのテキスト全てを選択し、deleteキーで一文字ずつではなくメンション一括削除をしたいです。
現状一文字ずつしか消せないのでユーザーをファーストを考えると一括で削除したいです。
教えていただけますでしょうか?
イメージは以下のやつです。
ユーザー名消している部分です。
https://camo.githubusercontent.com/4e101a98003dbce5bde75ec496c79cb16d5c77a7/687474703a2f2f692e696d6775722e636f6d2f613146664542692e676966
Hello there,
i've downloaded latest example and i changed underline style to RegeributedTextView.TextAttribute.underline(UnderlineStyle.dot) and RegeributedTextView.TextAttribute.underline(UnderlineStyle.dashDot)
but it didn't worked..
Hi,
First of all thank you for this useful project. I am using it in my app where there is a table view which show list of comment and every row may have @mention #hashtag. My issue is how to handle tap on these #hashtag and @mention to get the word which was tapped in table view cell itself. The RegeributedTextViewDelegate is there in ur project for this task, but its not getting called in my view controller.
here is my code in cell for row of table view delegate.:-
cell.txtComment.text = (dict.value(forKey: "component") as! String)
cell.txtComment.addAttribute(.mention, attribute: .textColor(.red))
cell.txtComment.addAttribute(.hashTag, attribute: .textColor(.red))
Thanks in advance.
Hi @rinov ,
I am using your library in my project. I am facing one issue with @mention.
Scenario: if the @mention word contains . or any special characters, on tap of these words it only detects the prefix of that before . or special character. Example :-if the word is @jitender.kumar , on tapping this word, it is only detecting jitender and not jitender.kumar
Thanks in advance.
Jitender
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.