Plots2: Markdown button disables on using keyboard shortcut

Created on 14 Jan 2020  Â·  11Comments  Â·  Source: publiclab/plots2

Please describe the problem (or idea)

What happened just before the problem occurred? Or what problem could this idea solve?
The markdown button in create note disables after using keyboard shortcut
Before using keyboard shortcut 'cmd+m'
Screenshot 2020-01-14 at 8 59 17 PM
After using shortcut
Screenshot 2020-01-14 at 8 59 24 PM

What did you expect to see that you didn't?
It must still be functioning.

Please show us where to look

https://publiclab.org/ ...

What's your PublicLab.org username?

This can help us diagnose the issue:

Browser, version, and operating system

Many bugs are related to these -- please help us track it down and reproduce what you're seeing!


Thank you!

Your help makes Public Lab better! We deeply appreciate your helping refine and improve this site.

To learn how to write really great issues, which increases the chances they'll be resolved, see:

https://publiclab.org/wiki/developers#Contributing+for+non-coders

bug

All 11 comments

@publiclab/reviewers Kindly provide your views on this?

Interesting! I took a look at it and it looks like it's trying to switch to markdown mode, but it's not changing the button to the "rich" button.

For example, here's what I had before pushing any buttons:

FireShot Capture 216 - 🎈 Public Lab_ Post - stable publiclab org

When I push the markdown button it switches to markdown mode and displays the "rich" button:
FireShot Capture 217 - 🎈 Public Lab_ Post - stable publiclab org

But if I instead push ctrl-M it shows me markdown, a disabled button and no toolbar:
FireShot Capture 218 - 🎈 Public Lab_ Post - stable publiclab org

I think we'll have to look at why a keypress is triggering something. Maybe we should just turn off the keyboard shortcut for that page, whatever it is.

@nstjean So how do we proceed with this?

I would first try to figure out why a keyboard shortcut is triggering something. There has to be code somewhere that is causing that, we'll have to hunt it down.

@nstjean This is due to the following function
Screenshot from 2020-01-17 02-11-22
This is from PublicLab.Editor.js

@sssash18 @nstjean If we press cmd+m then markdown is disabled but after that if we press cmd+p or cmd+h it moves back to respective modes.

Ok great! So the problem is that when it enters markdown mode it's not
changing the button over. We need to find out why pushing the button does
one thing and entering markdown mode by ctrl-M has a different result. Both
should do the same thing.

On Thu, Jan 16, 2020, 3:47 PM Keshav Sethi notifications@github.com wrote:

If we press cmd+m then markdown is disabled but after that if we press
cmd+p or cmd+h it moves back to respective modes.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/7238?email_source=notifications&email_token=ALZLKMPX2SGVATCN75IMBO3Q6DBVJA5CNFSM4KGVAXZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJFPTVY#issuecomment-575338967,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALZLKMJ4KCCAG5NWNEVFNYLQ6DBVJANCNFSM4KGVAXZQ
.

This has been fixed, as well as scroll to the top, image modal errors...
@jywarren needs to publish a new version so we have that changes on pl.org/post.

Please close this issue.

@VladimirMikulic can you link to the relevant issues so there's a history here? then we can close it! Thanks!

Feel free to reopen it if needed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

milaaraujo picture milaaraujo  Â·  3Comments

first-timers[bot] picture first-timers[bot]  Â·  3Comments

ebarry picture ebarry  Â·  3Comments

jywarren picture jywarren  Â·  3Comments

first-timers[bot] picture first-timers[bot]  Â·  3Comments