Get Selected Text in React

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 28

  • @colbyfayock
    @colbyfayock  4 หลายเดือนก่อน

    Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course

  • @tobiasjennerjahn8659
    @tobiasjennerjahn8659 หลายเดือนก่อน

    I *love* this video. The way you talk could not be more perfect. It's quick, but not hectic and it's detailed, but not overwhelmingly so. I don't know how much of that is a deliberate style choice, but whatever you do, please keep doing it. It's refreshingly snappy.
    I also saw your new Next.js course and that's looking like it is *exactly* what I need. I'm familiar with web dev but have been out of the game for about two years now and all of my professional work was done using Svelte. Finding react resources aimed at someone like me is borderline impossible. This looks like it'll get me up and running in one fell swoop. Amazing.

    • @colbyfayock
      @colbyfayock  หลายเดือนก่อน

      really appreciate the kind words. it's absolutely intentional. glad it's been impactful for you!!

  • @blokche_dev
    @blokche_dev 8 หลายเดือนก่อน

    Whether you're using React or not, there's still something to learn here. Thanks for sharing!

    • @colbyfayock
      @colbyfayock  8 หลายเดือนก่อน

      no problem!! 🙌

  • @colbyfayock
    @colbyfayock  9 หลายเดือนก่อน

    Get fresh tutorials and other free content straight to your inbox! colbyfayock.com/news

  • @sammed.sankonatti
    @sammed.sankonatti 6 หลายเดือนก่อน

    Absolutely brilliant work 👏

    • @colbyfayock
      @colbyfayock  6 หลายเดือนก่อน

      thank you!

  • @leonardocitton4627
    @leonardocitton4627 9 หลายเดือนก่อน

    Thanks Colby, I needed this video ❤

    • @leonardocitton4627
      @leonardocitton4627 9 หลายเดือนก่อน

      And your coding skills are great!

    • @colbyfayock
      @colbyfayock  9 หลายเดือนก่อน

      No problem and thank you!!

  • @jawyor-k3t
    @jawyor-k3t 9 หลายเดือนก่อน

    Outstanding as always

    • @colbyfayock
      @colbyfayock  9 หลายเดือนก่อน

      Thank you!!

  • @tiger_chew
    @tiger_chew 7 หลายเดือนก่อน

    thanks for sharing , I found it works on desktop browser, but it does not work on the iPhone or Android mobile phone browser , is there a solution for the mobile browser ?

    • @colbyfayock
      @colbyfayock  7 หลายเดือนก่อน

      yeah unfortunately i didnt get a good experience working in mobile. sometime was able to get it to pop up but not consistently. i _think_ i mentioned the caveat in the video, apologies if i forgot to, but also iOS at a minimum has their own popup in-browser, so that would conflict with the UI at least for this example

  • @sakarvaidya9665
    @sakarvaidya9665 2 หลายเดือนก่อน

    I was working on this. But on mobile devices it doesn't work. Mostly because of the touchend event. Any solution?

    • @colbyfayock
      @colbyfayock  2 หลายเดือนก่อน

      unfortunately havent come up with a good solution. part of hte issue is at a minimum iOS devices have their own tooltip prompt that would conflict with this, regardless of how the interaction would work. perhaps instead of a tooltip it could be a drawer fixed to the bottom of the page to avoid that

  • @Collect-AI
    @Collect-AI 9 หลายเดือนก่อน

    great video. I'm creating a Chrome extension and would like to add this feature for users to access on any website/page they go on.
    I've seen it being done with other chrome extensions I use. How can this be implemented in the code?

    • @colbyfayock
      @colbyfayock  9 หลายเดือนก่อน +1

      I'm not familiar with building expenstiins but I would expect you'd set up the event listeners similarly to how I did in the beginning as vanilla JS.

    • @Collect-AI
      @Collect-AI 9 หลายเดือนก่อน

      Thank for getting back. So the process you show in the video allows the user to copy text from any webpage they are on?@@colbyfayock

  • @iplaxtech
    @iplaxtech 9 หลายเดือนก่อน

    Thanks for sharing, it's very useful :)

    • @colbyfayock
      @colbyfayock  9 หลายเดือนก่อน

      No problem!

  • @MyGeorge1964
    @MyGeorge1964 9 หลายเดือนก่อน

    Thank v. much... V. useful bit of code.

    • @colbyfayock
      @colbyfayock  9 หลายเดือนก่อน

      No problem 🙌

  • @yasseraouffen
    @yasseraouffen 2 หลายเดือนก่อน

    Thanks a million

  • @scottfwalter
    @scottfwalter 9 หลายเดือนก่อน +1

    Please don’t. I find that feature the most annoying part of Medium. I want to just use native copy functionality.

    • @colbyfayock
      @colbyfayock  9 หลายเดือนก่อน +2

      I like it 🤷‍♂️ but it's also not impeding you from doing so either