Skip to content

In editor, text selected using "select all" should be deleted when new text is typed #592

@axis80

Description

@axis80

Consider an editable text element such as a paragraph, containing some text.

If I press control-A within that field and then begin typing some new text, the expected behavior is for the existing content to be deleted, and for the new text to take its place. Every web site, word processor, desktop app, etc. ever made has worked this way, so it's a well-established convention.

In Respond, the existing text is not deleted - rather, it is deselected, and then the new text is prepended to the beginning.

I'm trying to fix this myself but not having any luck. I have been reading up on contenteditable. I've also installed the respond-ui project and am digging through that to see if I can figure out how to fix this. I've looked through src/app/edit/edit/edit.component.ts and understand the basics. What I don't yet understand is which Angular route is used to serve the editor up in an iframe.

Can you offer any direction on which files I should look at, or in general how I could go about fixing this issue? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions