@mentions for Users with ActionText in Rails 6

Поделиться
HTML-код
  • Опубликовано: 4 дек 2024

Комментарии • 23

  • @MichaelBckerLarsen
    @MichaelBckerLarsen 4 года назад +3

    I believe the setSelectedRange should be ([position - (endPos - startPos), position]) otherwise it will consume from the start in some cases.

    • @sakshijain3286
      @sakshijain3286 4 года назад

      I am facing this issue and spend a lot of time. Finally! this help me thanks!

    • @muhammadumar3687
      @muhammadumar3687 Год назад

      It helped me alot! thanks

  • @dbelyaev
    @dbelyaev 5 лет назад +2

    Very useful lesson! Thanks

  • @acushlakoncepts
    @acushlakoncepts 3 года назад +1

    Thank you Chris

  • @howtogame98
    @howtogame98 3 года назад

    Thanks for the video. How can I capture the user in my controller so I can create a notification for them?

  • @alexandrsikorsky8866
    @alexandrsikorsky8866 4 года назад +1

    very nice! tnx

  • @eFFecTzz56
    @eFFecTzz56 4 года назад

    Hi, thanks for video. How I can check attachments from Trix (action text) in active record validations ? Thanks .

  • @bogdanGri
    @bogdanGri 3 года назад

    Actually in JS it should be:
    @trixEditor.setSelectedRange([startPos, position])
    otherwise it will delete whole line.

  • @certilremy
    @certilremy 5 лет назад

    I wonder if anyone have this problem like me, try to edit your post , add some text and save and tell me what happen . On my side after creating my post with mention ,my post doesn't save my changes .

  • @flightrecord5734
    @flightrecord5734 5 лет назад +1

    Hi Chris! Is there a way to email the users who are mentioned?

    • @GorailsTV
      @GorailsTV  5 лет назад +1

      Just covered that on today's episode!

  • @chibuzorefedigbue105
    @chibuzorefedigbue105 2 года назад

    I tried this with rails 7 and I am Tribute doesn't even attach

  • @dbelyaev
    @dbelyaev 5 лет назад

    Chris, there is another extra required feature for Trix:
    Inserting RUclips videos into the editor. Maybe with button and popup, maybe just on Paste event.
    Please, make a movie on that topic.

    • @GorailsTV
      @GorailsTV  5 лет назад

      They don't really recommend embedding RUclips videos directly in Trix. Basecamp actually embeds the preview image in Trix and then renders out the actual video later. Could make an episode on that with ActionText. github.com/basecamp/trix/issues/206#issuecomment-198479999

    • @dbelyaev
      @dbelyaev 5 лет назад

      @@GorailsTV please, make it. It's necessary to make this topic clear.

    • @dbelyaev
      @dbelyaev 5 лет назад

      @@GorailsTV I don't understand why WordPress community can create fully-featured instance of Tinymce (classic) with RUclips, Twitter, Facebook, Instagram embeds, and why others like 37 signals cannot.

    • @dbelyaev
      @dbelyaev 5 лет назад

      Why it's so easy to embed RUclips videos with, for example, SummerNote (summernote.org)?
      And there is too much troubles with Trix.
      I don't understand.

    • @Pulleasy
      @Pulleasy 5 лет назад

      @@GorailsTV Please do. I'm currently struggling with this as well.

  • @CForChannel
    @CForChannel Год назад

    @GoRailsTV I am facing an issue, whenever I am trying to mention someone after some text, it removes my all text and adds mentioned user name at the start.
    how to solve this issue?