Skip to content

Message Editing: Simple composer for editing only #9481

Closed

Description

@jryans

The composer's feature set is likely quite similar to #7697. The issue is specifically about a simple composer for message editing only.

Requirements (could do with some further discussion with @ara4n and/or @lampholder):

  • prototype PoC
  • integrate PoC into Riot
  • turn matrix.to links into pills when loading the editor
  • turn html formatting into markdown when loading the editor
  • show the existing room auto completion panel when typing #
  • show the existing user auto completion panel when typing @
  • show the existing emoji auto completion panel when typing :
  • apply markdown markup when sending a message (but no wysiwyg preview)
  • convert pills back to links when sending a message

Pasting converts any input to just plain text.

Out of scope for now:

  • pasting images

Activity

  1. self-assigned this
    on Apr 17, 2019
  2. bwindels commented on Apr 17, 2019

    @bwindels
    Contributor

    pushing to bwindels/message-edit-editor

  3. bwindels commented on Apr 17, 2019

    @bwindels
    Contributor

    Plan to use https://www.npmjs.com/package/textarea-caret to know where to show a popup at the cursor position.

  4. jryans commented on Apr 17, 2019

    @jryans
    CollaboratorAuthor

    show a popup at the cursor position

    Which part of the UI needs a popup at the cursor position? I am probably missing something obvious...

  5. bwindels commented on Apr 18, 2019

    @bwindels
    Contributor

    show a popup at the cursor position

    Which part of the UI needs a popup at the cursor position? I am probably missing something obvious...

    any autocomplete, like @people, #room or :emoji is what I have in mind... much like the github comment editor.

  6. bwindels commented on Apr 18, 2019

    @bwindels
    Contributor

    So this can work with a textarea, might be useful if we decide to go with the new emoji picker as well for auto complete, or decide to not make the auto complete panel full width.

    popup

  7. ara4n commented on Apr 18, 2019

    @ara4n
    Member

    my only refinement to this would be to show pills inline, otherwise that is a major aesthetic regression. i assumed we would build this as a minimal contenteditable rig rather than literally a textarea?

  8. jryans commented on Apr 18, 2019

    @jryans
    CollaboratorAuthor

    my only refinement to this would be to show pills inline, otherwise that is a major aesthetic regression. i assumed we would build this as a minimal contenteditable rig rather than literally a textarea?

    Maybe you already know, but just to be explicit: this issue is about the composer for message editing, which might be even simpler or different from what's used in the main composer. (The image above is a bit confusing, as Bruno is just prototyping in the main composer since message editing UI doesn't exist yet.)

    With that in mind, are you saying we really should show pills inline in the composer for message editing? (It's less clear what counts as a regression in this case, since message editing doesn't exist yet, and so far we have said we're okay with it having less features than the main composer.)

  9. bwindels commented on Apr 18, 2019

    @bwindels
    Contributor

    my only refinement to this would be to show pills inline, otherwise that is a major aesthetic regression. i assumed we would build this as a minimal contenteditable rig rather than literally a textarea?

    Right, doing it with contenteditable will be more work though, making sure we get all the edge cases right. I've been making some notes at https://gist.github.com/bwindels/1db725d39631df81f105b8df0b6a7c31 while looking into how we could do this.

    Won't be able to work on this while away until May 2nd in any case.

  10. assigned and unassigned on Apr 24, 2019
  11. self-assigned this
    on May 2, 2019
  12. bwindels commented on May 7, 2019

    @bwindels
    Contributor

    prototype is ready, putting it in the app now.

  13. bwindels commented on May 17, 2019

    @bwindels
    Contributor

    Closing this, tracking all remaining bits in #9487

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions