[ARCHIVED] Inline preview window for a link

shimon_agur
Community Novice

Hello,

I'm trying to create an inline preview for a web link in the syllabus  with  the rich text editor.

to explain what I want to achieve:

When you add a url to a module , the default is a preview window, however you have the option to open it in a new tab:

351385_pastedImage_5.png

the result is this:

351393_pastedImage_8.png

When you add a file to the syllabus, it automatically gives the inline preview option,

351392_pastedImage_7.png

when you add a web-link to the syllabus however, the default is that it will open in a new tab.

I'd like to have a preview window  for this link in the syllabus  as if you added a url to the module or as if you add a file to the syllabus.

I tried to change the html attribute : 

<a href="https://www.nchlondon.ac.uk" target="_blank" onClick="window.open('https://www.nchlondon.ac.uk','pagename','resizable,height=600,width=600'); return false;">Academic Handbook</a>

but that doesn't work, in fact the rich text editor of Canvas doesn't even save the code even though I click on update the syllabus..

appreciate any idea ! thank you.

Labels (2)
0 Likes