Khan / Khan/live-editor

Pjs getImage() function does not show all available images

Open
#641 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
776
Forks
180
PR merge metrics
No merged PRs in 30d

Description

Seems like a simple fix.

The image selector for a [JavaScript program][0] does not show all available images. The [HTML image selector][1] however does.

It is possible to enter the direct url in the JavaScript environment for images not shown by the picker. However, this is not ideal. Why not use the same full featured image selector for both programs?

_pjs image picker_
![1](https://user-images.githubusercontent.com/4354703/27988369-8531bfb4-63dd-11e7-957a-d2924f3fdbbb.png)

_HTML image picker_
![2](https://user-images.githubusercontent.com/4354703/27988370-853293b2-63dd-11e7-9d20-313602b4b287.PNG)

[0]: https://www.khanacademy.org/computer-programming/imageimage-x-y/937672662
[1]: https://www.khanacademy.org/computer-programming/html-the-image-tag/4800922048004096

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the image selector used by the JavaScript program with the HTML image selector shown in the issue. Trace how each picker loads and displays available images. Done means the JavaScript picker exposes the same available images as the HTML picker, without requiring a direct URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.