Skip to content

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
Contributor

@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.

2 participants