GithubHelp home page GithubHelp logo

Comments (15)

a11yHolli avatar a11yHolli commented on April 26, 2024 1

@trueadm Quick tests

  • Facebook : no
  • Quip : no
  • Gmail : yes
  • Google Docs : doesn't actually show my cursor indicator

from lexical.

trueadm avatar trueadm commented on April 26, 2024 1

I think the simplest and probably most logical solution here is to come up with a LinkBreakNode that extends TextNode. Its value would be \n so text content continues to work properly, with the exception of having a custom createDOM that renders a br element. Thoughts on that @yangshun?

from lexical.

trueadm avatar trueadm commented on April 26, 2024 1

@yangshun its not really full plain text. It still has custom emojis, mentions, text delights, hashtags etc

from lexical.

trueadm avatar trueadm commented on April 26, 2024

Thanks for reporting this :)

our if curiosity, does this happen on FB with Draft? Also does it happen on other editors like Gmail or Quip?

I wonder if this is an OS bug (maybe it works better with Edge?).

from lexical.

a11yHolli avatar a11yHolli commented on April 26, 2024

@trueadm I use the text cursor indicator all the time and I have never noticed this before. It's really obvious when it happens because you aren't sure where your typing will happen. But I will check in a few other places and see if I can make it happen.

from lexical.

trueadm avatar trueadm commented on April 26, 2024

So I just tried on the Outline Playground on Github (the one you run locally) on my personal Windows machine. The text cursor seems to appear and work correctly. I'll see if I can get my Windows laptop working and see if it's maybe related to the CSS on the Outline Playground on intern.

from lexical.

yangshun avatar yangshun commented on April 26, 2024

I'll see if I can get my Windows laptop working and see if it's maybe related to the CSS on the Outline Playground on intern.

I use Windows as a work laptop and can't repro this issue on the Outline Playground on intern.

Outline.Playground.-.Google.Chrome.2021-03-05.08-45-27.mp4

P.S. The indicator isn't captured in the video but it matches the cursor position.

from lexical.

trueadm avatar trueadm commented on April 26, 2024

I can repro in plain text mode, but this doesn't happen in rich text mode. I also have to be at the end of the text (cursor at the end) for it to happen to.

from lexical.

yangshun avatar yangshun commented on April 26, 2024

Right, I can reproduce in plain text mode too.

from lexical.

trueadm avatar trueadm commented on April 26, 2024

My hunch is that this is because we use \n character rather than <br>.

from lexical.

yangshun avatar yangshun commented on April 26, 2024

Sounds reasonable but I wouldn't say I know enough about Outline to be sure. I'm not exactly sure why we need Outline for plaintext mode though. Wouldn't a <textarea> do the same?

from lexical.

yangshun avatar yangshun commented on April 26, 2024

Thanks that's helpful :)

from lexical.

trueadm avatar trueadm commented on April 26, 2024

Fixed in #160.

from lexical.

a11yHolli avatar a11yHolli commented on April 26, 2024

@trueadm I found another example of this while testing emojii. Is this separate? should I open a separate issue for it?

cursor.indicator.misalignment.mp4

from lexical.

trueadm avatar trueadm commented on April 26, 2024

@a11yHolli Yeah it looks related. A fix for that has gone up, it should be live in the next few hours. Let's see if that fixes this problem.

from lexical.

Related Issues (20)

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.