alcyona / pagedown

Automatically exported from code.google.com/p/pagedown
Other
0 stars 0 forks source link

Prompt background does not disappear after 2nd try #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When clicking the image button, the wmd-prompt-background appears. If the image 
insert is canceled using callback(null); in JavaScript, then the background 
disappears. However, if the user clicks the image button again, the 
wmd-prompt-background will appear again, but whether callback(null); or 
callback("http://someurlhere.com/photo.jpg"); is used, the background will not 
disappear.

The JavaScript Console shows at this time "Uncaught TypeError: Cannot call 
method 'removeChild' of null" in Markdown.Editor.js line 1684. 

I have attached the trace that the browser's console provides. The browser 
version is Google Chrome 20.0.1132.57 m on Windows XP.

Original issue reported on code.google.com by johngti...@gmail.com on 25 Jul 2012 at 11:06

Attachments:

GoogleCodeExporter commented 9 years ago
Hmm, I can't reproduce this immediately. Are you sure the callback() call is 
asynchronous? If so, I'll need more details to reproduce this.

Original comment by b...@stackoverflow.com on 26 Jul 2012 at 4:12