I have noticed that I can't edit my old schematics because the EDIT button under the schematic doesn't appear after I go into edit mode on my answer. What could be the reason?
The problem appears to be that in older CircuitLab schematics, the image was saved as https:..., but in newer schematics, the image is saved as http:...
Changing the text in the markup from https to http seems to fix the problem. However, I am not aware of the security issues involved, or why the change was made.
I have tested the change on this answer (rev 10)
My guess is that CircuitLab stores the editable schematics in a database, and the URL of the png image file is used as a key to recover the schematic. At some point, the names changed from https... to http...
Again, I have no idea what the security implications of the change are. Since the URL only fetches an image, I imagine there is no danger in the change, but I am not a security expert.
tl;dr: The fix should be out in production now. Please let me know if you're still seeing issues with schematic-related links.
Big thanks to Math Keeps Me Busy for the HTTP vs HTTPS pointer. I'm not entirely sure how we're ending up with
http for newly created schematics (I looked a bit through the image upload code, but nothing jumped out at me), but either way, when we process the post markdown, we convert http to https. It looks like at that point the post revision has one thing and the rendered HTML has another. My guess is that in past we did a mass edit of posts to rewrite existing image urls to https, but parts of the code that makes the schematic editor work didn't get the memo.
When you attempt to edit the schematic they indicate that you need to log in or to create an account.
I have discovered a work around. I hope it is OK to post this as an answer, even though the problem persists.
- Open EESE in two browser tabs.
- In one tab, open the edit window the question or answer of interest.
- With the edit window open, add a new CircuitLab editor just below the uneditable schematic
- In the other tab, click "simulate this circuit"
- When CircuitLab opens, select the entire circuit with CNTRL/A, then copy it to clipboard with CNTRL/C
- Go back to the first tab, and paste the clipboard into CircuitLab with CNTRL/V. (Surprise! it works.)
- Save the exit CircuitLab.
- Remove the markup for the uneditable circuit from the text in the edit window.
- Save and exit the edit window.
Just for a little truth in advertising. It worked on my MacBook Air running macOS High Sierra. I didn't actually use "CNTRL/X" for the various commands, but "Command/X" on my keypad. I am guessing, but could be wrong, that the clipboard works the same on Windows as it does on my Mac. However, it is conceivable that it doesn't, so would like to hear feedback.