Closed tomasrei closed 4 years ago
Hi, replace spaces in paths with %20
. So this should work:
C:\Users\username\Documents\Statsvetenskap%20II\Perspektiv%20på%20politik%20HT20\Studielitteratur\hall_taylor.jpg
i.
You can also use repository macro below to replace spaces with %20 in selected text - i.e. URLs:
/* Replace spaces with %20 */
var e = _editor;
var m = wm;
function r(t) {
t = t.replace(/ /g, "%20");
return t;
}
if (e.somethingSelected()) {
var t = r(e.getSelection());
e.replaceSelection(t, "around");
} else {
m.showNotice("Nothing selected!");;
}
Hi! Some issues with images it seems like.
First, if you paste online jpg address in the repository it just displays a blank snippet. If you drag it to the document it inserts the proper code+link. It doesn't display in the preview panel - but is displayed if I use "open in browser".
Secondly, if I use a file-path on my hard drive - it just adds the text without conversion, meaning that if I add the following address to the repository it displays the address as is: C:\Users\username\Documents\Statsvetenskap II\Perspektiv på politik HT20\Studielitteratur\hall_taylor.jpg becomes:
Finally, the above address won't work but if I put it on my desktop or my microSD for example. Like this is ok:
this also works (D is microSD-drive):
but not this:
Maybe it something to do with permissions?