Spectrum: Writing a message containing a list (markdown style) triggers an error

Created on 17 Apr 2018  路  5Comments  路  Source: withspectrum/spectrum

Searched a bit but I didn鈥檛 find any open issue for that.

In any thread, write:

- Foo
- Bar

It will get formatted properly in the chat bar, as shown here:
screen shot 2018-04-17 at 20 52 03

But once you send it, it gets deleted (potentially losing a long message) and this error shows up:
screen shot 2018-04-17 at 20 50 15

I don鈥檛 really have the time to look into it but:
1) It鈥檚 a pretty cryptic error message IMO
2) Losing what you just wrote is really annoying (I think you should clear the chatbar only if sending a message succeeds?)

Bug

All 5 comments

Thank you for reporting this! @mxstbr can we hot fix this?

Oh yeah we should remove lists from the block configuration of the markdown plugin of the chatInput! I put them in, didn't like them but apparently forgot to take them out.

@mxstbr i removed ordered-list-item, unordered-list-item from markdown plugin configuration object. but still i am able to see formatted list in chat input.
i think there is a bug in draft-js-markdown-plugin

That's fine, submit a PR! I can fix that if it really is

@mxstbr after merge, i pulled latest alpha and installed dependencies, it worked. but i don't know why it was not working before.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brianlovin picture brianlovin  路  5Comments

mxstbr picture mxstbr  路  4Comments

carloslfu picture carloslfu  路  3Comments

atlx picture atlx  路  5Comments

mattgaunt picture mattgaunt  路  4Comments