[FIXED] [FORUM] View source button not working

For the Post:

Summary of the report:
When you press the view source button (image below) the source of the post does not show. This is very important for unformatted code, especially HTML/CSS or very poor formatted code. With the source button, it makes it a lot easier to read the code and help. This is also very important to Python because of indentaion matters in the language. And using inspect element is inefficient and difcult.

Course URL:
All topics/posts on these forums.

Steps to Reproduce:
Go to any topic/post and press the view source button and it shouldnā€™t be able to view the source code.

Fix or Workaround:
None to my knowledge.

Browser
Chrome Version 100.0.4896.60

Evidence

1 Like

Where is this ā€˜view sourceā€™ button to which you refer? There is an Edit tool in each post, but nothing with that name.

Iā€™m referring to the button that displayed the raw content of a post. The button has </> in it.

image

Thatā€™s the code sample tool for posting blocks.

If you press the 3 dots on a post it displays the same icon and it shows the raw content of the post.

1 Like

Ah, okay. Iā€™ve never used that and just use the edit tool to see their raw post. Did you try it in FF? Iā€™m using Chrome and can see it does not work.

Aside

The three dots are called an ellipsis.

1 Like

I donā€™t have Firefox so no. And we donā€™t have access to the edit tool. Only mods.

Just tried it in FF (Windows 10) and it doesnā€™t work there, either.

1 Like

Does CC support any other browsers than Chrome and FF. I know this is discourse but I donā€™t know if we have plugins or theme (components) that would break it so it would not be supported.

I just found a plugin that warns a user before posting unformatted code. Havenā€™t player played around with it but it may be worth looking into and it could replace the button.

Off topic:

Never knew that and I didnā€™t even think that it had a name.

Yes, and a general purpose in grammar. Chances are we use it correctly only half the time, but it usually indicates that something has been left out (as in not visible or omitted) or that there is more to add, although the sentence may trail off.

1 Like

BTW, Iā€™ve tagged CC to raise this topic with the Discourse Admin on staff. With any luck we may hear back from them.

Got it. About the button or plugin, I mentioned before.

Just this topic. It should all come to light in due course.

1 Like

The view source button referred to by @not-ethan, is the handiwork of Scott (@selectall), I believe. He created it, so the SUā€™s and other users could see the raw text of poorly formatted posts. Mods donā€™t need it, as we have access to edit any post, and can see the raw text with that tool. Iā€™m sure the tool Scott created is extremely useful to the SUā€™s, and hopefully whatever was changed that broke it, can be undone, or modified.

2 Likes

Doesnā€™t work in Safari either.

Aw, I didnā€™t know Scott created that! That was nice of him.

2 Likes

Clicking the </> button throws:


There apparently was an ID of share-link, but isnā€™t now?

Trying somethingā€¦

If I add `id=ā€œshare-linkā€ to the image button in the html, I get the raw text, but not where it belongs:

:thinking:

@alexc, is this something you can fix by changing the undefined element to an element can still be accessed?

1 Like

Well, at least we are getting a lead on this. I will say If I remember correctly when this was working long posts with a lot of md overflowed because the rendered md is a lot smaller than the raw.

To add to the aside they actually have fun food related names FreeFrontend blog ā€” Menu Icon Animation HTML and CSS menu icon...

Yes it was indeed @selectall that created it. Iā€™ll have a little look to see if I can find out how it can be fixed, but I wouldnā€™t want to step on Scottā€™s toes, Iā€™ll give him some space to fix it first.

3 Likes

Did they spell donair correctly?

King of Donair - Wikipedia

1 Like

Apparently it is a Canadian thing!

1 Like