Git Product home page Git Product logo

regeributedtextview's People

Contributors

rinov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

regeributedtextview's Issues

@Mention not deteching a word if it is seperated by . or any any special charcter

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

RegeributedTextView.TextAttribute.underline Not working!

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..

Handling #hashtag and @mention tap within table view's cell for row delegate

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.

メンションのテキストをdeleteキーで一括削除したいです。

@rinov こんばんわ!
RegeributedTextViewすごく使いやすいです!ありがとうございます!
アレンジしたいのですが、ご教授ください。

RegeributedTextView.textに追加したメンションをクリックで選択したら、メンションのテキスト全てを選択し、deleteキーで一文字ずつではなくメンション一括削除をしたいです。
現状一文字ずつしか消せないのでユーザーをファーストを考えると一括で削除したいです。
教えていただけますでしょうか?

イメージは以下のやつです。
ユーザー名消している部分です。
https://camo.githubusercontent.com/4e101a98003dbce5bde75ec496c79cb16d5c77a7/687474703a2f2f692e696d6775722e636f6d2f613146664542692e676966

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.