Found this content helpful? Log in or sign up to leave a like!
pasting quote marks adds “ and ”
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
“ and ” are the HTML codes for the left and right quote marks, respectively (" and ").
When I copy from a plain text editor into Canvas' HTML editor (in an assignment page), initially, all seems well. But once I click to view the result in the WYSIWYG editor, I get a Canvas "error" page ("There's nothing here").
When I go back into HTML view, I notice the left/right quote codes have been added inside the " and " characters. In other words, it's not even replacing the characters; it's trying to duplicate them. Neither is good, because I get this error screen.
I used to be a web developer. I know from HTML. It's not that I'm typing something weird or that I don't know what I'm looking at when I use the HTML editor. Why is Canvas doing this, and more importantly, how do I make it stop? I need to paste a code snippet into something like 80 pages (over two courses), and possibly more in the future. I cannot stand the thought of having to go back and select and delete the “ and ” strings (twice each per page, by the way) every single time. Someone please save me!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lglen2,
Thanks for the video, it does help a bit to see wha you're doing. It's a bit hard to see in the video for sure, but you did verbally say the quotes around the work "LINK" in the code you copy/pasted from what looks like Apple TextEdit over into the Canvas RCE are open/close quotes, which I'm interpreting as being "smart" quotes which TextEdit will create for you. If that's the case, that's the fundamental problem, as HTML needs straight, not smart/curly quotes. I think the reason you're getting the double quotes is that the Canvas RCE is trying to be helpful in adding quotes to what would otherwise be invalid html with the smart/curly quotes...
I'm not exactly sure where that code snippet in your TextEdit window came from, but it may help to put TextEdit into "plain text" mode (format menu, "make plain text") before doing any coding there as in plain mode it shouldn't do anything to manipulate straight quotes into smart/curly ones. I actually have TextEdit default to plain text (TextEdit -> settings, choose Plain text under format) because I do use it for code snippets too, and the rich text creates a lot of headaches like this in many other areas too. Changing to plain text won't fix the smart/curly quotes that were already created, you will need to retype those if you attempt it, but when in plain text mode from the start, you likely won't have any of those to deal with anymore anyways.
I hope this helps a bit!
-Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the video, @lglen2.
As someone that is primarily an Apple user, I was going to say something similar to @chriscas.
In short what could be happening when you are using TextEdit and in "rich text mode" and even if the file has not been saved, you are working in a file format that would result in being an RTF file and not a TXT file. Switching to "Make Plain Text" will remove any of that potential formatting that could have come from somewhere else.
Another option to try, and I use it by default on my Macs, is the free version (it will be in a trial mode for 30 days) of BBEdit. BBEdit is what I use on a regular basis, except for specific use-cases when I still use TextEdit in plain-text mode.
Two other things to try, and it might not be as easy or convenient but can help with troubleshooting, are to:
- manually type the link instead of copying and pasting
- does that same experience happen if you try to use another website that supports embedding
Please let us know how it goes.
-Doug