jessepollak / command

:black_nib: Making the web better with Slack-like slash commands.
http://slashcommand.club
MIT License
1.11k stars 66 forks source link

Slashes randomly inserted on Canvas (usecanvas.com) #45

Open sersorrel opened 8 years ago

sersorrel commented 8 years ago

To reproduce:

  1. Create a new Canvas
  2. Type a slash, then any other character
  3. Observe the extra slash placed after the cursor (also that it can't be deleted by pressing delete or backspace)
  4. Attempt to delete the letter (delete produces pessimal results, backspace just inserts slashes)
  5. Observe that extra slashes and letters are added after the cursor

The only way to recover from this is by selecting all text containing a slash (either with the mouse or the home/end buttons) and deleting it, as all attempts to use backspace/delete without text selected simply cause the characters to reproduce.

sersorrel commented 8 years ago

More details: Canvas uses a ContentEditable div instead of a textarea or similar. Will that make this impossible to fix, given how broken ContentEditable is?

jessepollak commented 8 years ago

It should be fixable — Gmail uses contenteditables and I've been able to make it work there!