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.

Selecting actual "typed content" when rendered content is selected.

See original GitHub issue

Let’s say I type (c) and convert it to ©. Or, maybe I convert :) to 😄 . Is it possible to get actual typed content when I selected rendered content. So, selecting the emoji should give me :).

Essentially mapping selection/cursor position from rendered content to typed content.

Is something like that possible?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
michaelpietrykowskicommented, Apr 18, 2017

@jatins That will work, I am doing basically the same thing. Just iterate over the nodes and check if node.type === yourEmojiType. If true, do result += node.data.get('originalText'), otherwise result += node.text.

0reactions
jatinscommented, Apr 18, 2017

@oyeanuj Thanks for the suggestion! Yes, that’s probably something I could do. I’ll look into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selecting all text in HTML text input when clicked
You can use the JavaScript .select() method for HTMLElement: <label for="userid">User ID</label> <input onClick="this.select();" value="Please enter the ...
Read more >
selection - CSS: Cascading Style Sheets - MDN Web Docs
The ::selection CSS pseudo-element applies styles to the part of a document that has been highlighted by the user (such as clicking and ......
Read more >
Basics of rendering and exporting in After Effects CC
Learn how to render and export in After Effects using the Render Queue panel and Media Encoder and what are the supported output...
Read more >
Forms in HTML documents - W3C
This control type allows the user to select files so that their contents may be submitted with a form. The INPUT element is...
Read more >
Everything you need to know about ng-template, ng-content ...
The select attribute selects the type of content that will be rendered inside a particular <ng-content> . Here we have first select to ......
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