Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken "Raw cell MIME type" dialog (#3255) #5385

Merged
merged 1 commit into from
May 22, 2020

Conversation

onnodb
Copy link
Contributor

@onnodb onnodb commented Apr 17, 2020

The modal dialog for entering a custom MIME type for a "Raw NBConvert"-type cell was broken (see also #3255). This change to the JavaScript code makes the modal dialog appear correctly again. It also fixes the handling of key presses while the dialog is open, preventing the cell editor from handling them.

I ran into this issue today, and figured I could try and have a look at the JavaScript code myself. The fix is really just based on comparing the code in notebook/static/notebook/js/celltoolbarpresets/rawcell.js with the code in .../tags.js. I'm not much of a JS developer, so please bear with me :-)

The modal dialog for entering a custom MIME type for a "Raw NBConvert"-
type cell was broken. This change to the JavaScript code makes the modal
dialog appear correctly again, as well as correctly disabling the
handling of key presses by the cell editor while the dialog is open.

This fixes jupyter#3255.
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks @onnodb!

@blink1073 blink1073 added this to the 6.1 milestone May 22, 2020
@blink1073 blink1073 merged commit 7563c54 into jupyter:master May 22, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants