Selecting actual "typed content" when rendered content is selected.
See original GitHub issueLet’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:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jatins That will work, I am doing basically the same thing. Just iterate over the nodes and check if
node.type === yourEmojiType
. If true, doresult += node.data.get('originalText')
, otherwiseresult += node.text
.@oyeanuj Thanks for the suggestion! Yes, that’s probably something I could do. I’ll look into it.