Skip to content

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

Description

@TakahiroSakamoto

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

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions