[
https://issues.jboss.org/browse/JBIDE-17450?page=com.atlassian.jira.plugi...
]
Ilya Buziuk commented on JBIDE-17450:
-------------------------------------
[~akazakov], HTML Preview is implemented via socket API so we do have our own way of
communication
{code}
String url = HTTP + LOCALHOST + ":" + port + "/" +
projectRelativePath + "?" + PROJECT_NAME + "=" + projectName +
"&" + VIEW_ID + "=" + modelHolderId;
{code}
{quote}
For example, for my project, VPV generates the following working URL:
http://localhost:43951/src/main/webapp/index.html?projectName=jboss-as-ki...
But it should be
http://localhost:43951/index.html?projectName=jboss-as-kitchensink-html5-...
{quote}
^ the URL is correct because we use project relative path by convention (We need to know
where we supposed to find a file in the workspace).
{quote}
don't know why it works for Ilya Buziuk. It doesn't seem to be platform
dependent
{quote}
I think I know -
http://www.screencast.com/users/IlyaBuziuk/folders/Jing/media/1ec99e5b-0d...
In the video vpe generates *<img
src="/src/main/webapp/resources/jboss.png"/>* (can be handed by HTML
Preview), not *<img src="/resources/jboss.png"/>*
So as I understand there are 2 problems:
1. vpe generates not correct url for images
2. HTML Preview can't handle webroot
Do you know is there any API for getting the web root of the project?
Drag&Drop of image to VPE source part doesn't insert proper
link
----------------------------------------------------------------
Key: JBIDE-17450
URL:
https://issues.jboss.org/browse/JBIDE-17450
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: visual-page-editor-core
Affects Versions: 4.2.0.Beta2
Environment: JBDS 8.0.0.Beta2-v20140525-2146-B104 Linux 64bit
Reporter: Vlado Pakan
Assignee: Ilya Buziuk
Fix For: 4.2.0.Beta3
1. Import HTML 5 project from JBoss Central
2. Open index.html page
3. Drag&drop some image from img subdirectory to source part of VPE
ERROR: Dropped image is not shown in visual part of VPE. Inserted img tag contains src
attribute starting with '/'. Once this character is removed image is properly
displayed in visual preview.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)