Page MenuHomePhabricator

Design a more subtle experience for preserving text formatting when pasting content into source
Closed, ResolvedPublic

Description

This task is about introducing a more subtle experience for preserving text formatting when pasting content into the source modes of editing interfaces that are built "atop" the visual editor (read: 2017 wikitext editor and DiscussionTools' Reply Tool and New Discussion Tool).

Requirements

  • By default, copied text should be pasted into the editing interface as plaintext
  • People should be aware they have the ability to preserve [i] the formatting inherent in the text they've copied once it's pasted into the editing interface
  • At all points in the process of pasting text into the editing interface, people should:
    • A) Be able to see the entirety of the text they are pasting
    • B) Be able to use the editing interface they are pasting content into

Approaches

  • Approach #1: ephemeral hint [ii]
    • @Esanders to link to the WIP demo he's been working on.

Done

  • An ===Approach that meets the ===Requirements above is implemented and testable via patchdemo

i. "Preserve" refers to the pasted text rendering to the saved page in the same way it appeared on the page it was copied from
ii. Where "ephemeral hint" refers to something like how Google Sheets currently behaves (@Esanders) spotted this:

Screen Shot 2021-04-23 at 5.00.00 PM.png (1×1 px, 181 KB)

Event Timeline

Without significant changes to the context, we can reduce it to one line:

image.png (249×728 px, 21 KB)

I think this is light enough, and by re-using our existing context logic it will work sensibly on mobile (where contexts are moved to the bottom of the screen) without having to redesign there as well.

ppelberg added a project: Editing-team.
ppelberg moved this task from Untriaged to Next Quarter on the Editing-team board.

Ed's design has been already implemented in T282789 and Jess reviewed it as well, I don't think we're going to work on anything different here?

ppelberg claimed this task.

Ed's design has been already implemented in T282789 and Jess reviewed it as well, I don't think we're going to work on anything different here?

Noted and I too do not see us iterating on the initial design Ed proposed and implemented. Should people encounter difficulties with this implementation (T282789) we can address them in these not-yet-created-ticket(s).