{"action":"created","issue":{"url":"https://api.github.com/repos/tagspaces/tagspaces/issues/342","labels_url":"https://api.github.com/repos/tagspaces/tagspaces/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/tagspaces/tagspaces/issues/342/comments","events_url":"https://api.github.com/repos/tagspaces/tagspaces/issues/342/events","html_url":"https://github.com/tagspaces/tagspaces/issues/342","id":116120902,"number":342,"title":"External local images with relative path are not shown in HTML viewer and editor (Win7-64)","user":{"login":"2e8","id":11873221,"avatar_url":"https://avatars.githubusercontent.com/u/11873221?v=3","gravatar_id":"","url":"https://api.github.com/users/2e8","html_url":"https://github.com/2e8","followers_url":"https://api.github.com/users/2e8/followers","following_url":"https://api.github.com/users/2e8/following{/other_user}","gists_url":"https://api.github.com/users/2e8/gists{/gist_id}","starred_url":"https://api.github.com/users/2e8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2e8/subscriptions","organizations_url":"https://api.github.com/users/2e8/orgs","repos_url":"https://api.github.com/users/2e8/repos","events_url":"https://api.github.com/users/2e8/events{/privacy}","received_events_url":"https://api.github.com/users/2e8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-10T14:48:06Z","updated_at":"2015-11-11T21:14:23Z","closed_at":null,"body":"External local images with relative path are not shown in HTML viewer and editor under Win7-64.\r\n\r\nI have found how to fix it for viewer:\r\nchange `$(this).attr(\"src\", \"file://\" + fileDirectory + isWin ? \"\\\\\" : \"/\" + currentSrc);`\r\nto `$(this).attr(\"src\", \"file://\" + fileDirectory + \"/\" + currentSrc);`\r\nin `setContent` of `main.js`.\r\nI don't understand what is `isWin ? \"\\\\\" :`, but it doesn't work and is not needed. `/` works good for windows.\r\n\r\nUnfortunately I have not found how to fix it for editor. There is no `fileDirectory` information in editor scripts to use it."},"comment":{"url":"https://api.github.com/repos/tagspaces/tagspaces/issues/comments/155912463","html_url":"https://github.com/tagspaces/tagspaces/issues/342#issuecomment-155912463","issue_url":"https://api.github.com/repos/tagspaces/tagspaces/issues/342","id":155912463,"user":{"login":"uggrock","id":1249777,"avatar_url":"https://avatars.githubusercontent.com/u/1249777?v=3","gravatar_id":"","url":"https://api.github.com/users/uggrock","html_url":"https://github.com/uggrock","followers_url":"https://api.github.com/users/uggrock/followers","following_url":"https://api.github.com/users/uggrock/following{/other_user}","gists_url":"https://api.github.com/users/uggrock/gists{/gist_id}","starred_url":"https://api.github.com/users/uggrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uggrock/subscriptions","organizations_url":"https://api.github.com/users/uggrock/orgs","repos_url":"https://api.github.com/users/uggrock/repos","events_url":"https://api.github.com/users/uggrock/events{/privacy}","received_events_url":"https://api.github.com/users/uggrock/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T21:14:23Z","updated_at":"2015-11-11T21:14:23Z","body":"We will try to fix this for the next release."}}