Right now, when there's a link from JSFiddle.net in a post you are required to have a code-block, otherwise you'll get an error which won't let you submit your post/edit:
Links to jsfiddle.net must be accompanied by code. Please indent all code by 4 spaces using the code toolbar button or the CTRL+K keyboard shortcut. For more editing help, click the [?] toolbar icon.
It's been discussed here: Detect (disallow?) fiddle links in code blocks
There are many other threads here:
Asking to allow posting fiddle links without code (Answer: Then you have a "Link-Only" answer or "No MCVE" question which would get downvoted and probably deleted as NAA or closed)
Talking about users hacking the system by putting the link into a code block, using shortened URLs, etc. (Answer: We can only try to let users know that links to external resources without enough details provided are not useful. If they decide to hack the system, there's not much else we can do except taking the regular moderation actions when we see those posts).
This is appropriate if you are the author of the fiddle. But if you are not, another issue surfaces. According to May I edit a question with a JSFiddle link to incorporate the code? you shall not copy/paste content of JSFiddle.net posts into Stack Exchange. It suggests leaving a comment and asking OP to include their code themselves but again, that's only valid if they are also author of the fiddle.
I first edited to improve the layout. Doing that I was required to include the code so I copy/pasted the fiddle; upon further research I realized that is not appropriate so I rolled back and included an empty block of code to bypass the error. I did not ask the OP to include the code since they are not author of the fiddle.
At the same time, I don't think that the answer needs to go away as link-only. It says: "You can work around this issue by setting missing data to an empty array ..." which is practically an answer. However it did not include a link to the source, which I added.
My questions are:
- Have I acted appropriately here? If not, what would have been the better approach?
- If you are referring to someone else's work on JSFiddle, then how you can keep up with the standard of posting the code while complying with the licensing requirements?
If I am on the right path, then I am thinking of some changes to that feature:
- When other users are editing, a notification/warning happens rather than blocking, if the text for the JSFiddle link already existed in the post. The issue is that we don't want users adding such links, not that we don't want them to improve posts where it already exists.
- As suggested in other threads, the message about including code should change to better reflect what Stack Exchange requires.