question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to move range to the start of a `isVoid` block if the `isVoid` block is at the start of the document

See original GitHub issue

Do you want to request a feature or report a bug? bug

What’s the current behavior?

Because all ranges are inside Text Nodes, suppose we have an isVoid === true image block moved to the start of a document, then it seems impossible to move selection to the real start of the document (for example, users press leftArrow at the end of the image) insert text before the image.

Thank you Jinxuan Zhu

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bengotowcommented, Jan 11, 2018

Hey @zhujinxuan — I think I’ve seen a related problem. If an isVoid block is the last node of the document or the last/deepest child of the last node, select-all doesn’t work in the editor. I tried to hack a fix to this by ensuring that my HTML serialization inserts an empty space after the last node, but it’s not a perfect fix.

0reactions
tvrcgocommented, Mar 26, 2019

My workaround was copied void image block to second line and deleted the first one. 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Structure Void - Minecraft Wiki - Fandom
Moved structure voids behind the Operator Utilities tab in the creative inventory. The tab is only available if cheats are enabled and the...
Read more >
error : "cannot be an iterator block because `void' is not an ...
ok, so i've been trying to convert a javascript file to c#... believe i have it mostly done, only one error now, of...
Read more >
Element.scrollIntoView() - Web APIs | MDN
Corresponds to scrollIntoViewOptions: {block: "start", ... One of start , center , end , or nearest . ... const element = document.
Read more >
HTTP - Developers - Dropbox.com
This starts the OAuth 2.0 authorization flow. ... invalid_select_user Void The user specified in 'Dropbox-API-Select-User' is no longer on the team.
Read more >
Scripting API: MonoBehaviour.Awake() - Unity - Manual
Use Awake to initialize variables or states before the application starts. ... void Awake() { target = GameObject. ... Log("space key was pressed");...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found