Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paths to images inserted into diagrams become invalid at upgrade #11 #76

Merged
merged 3 commits into from Oct 4, 2019

Conversation

oanalavinia
Copy link

  • removes from the graph and the cached svg the information about draw.io at save action and adds it back only for view mode, export as pdf (when there is no attachment and the svg is used) and also when entering in edit mode

…isas#11

* removes from the graph and the cached svg the information about draw.io at save action and adds it for view mode, export as pdf (when there is no attachment and the svg is used) and also when entering in edit mode
…isas#11

* remove draw.io info from the graph xml directly, without traversing graph cells
* for export as svg add draw.io info on the output svg, without saving it
var newPrefix = 'image=' + "$services.webjars.url('org.xwiki.contrib:draw.io', '')" + '/img';
diagramXML = diagramXML.replace(/image=\/img/g, newPrefix);
return diagramXML;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
};

It's usually safer to put a semicolon here.

@oanalavinia oanalavinia merged commit b720523 into xwikisas:master Oct 4, 2019
@oanalavinia oanalavinia deleted the issue#11 branch June 17, 2020 12:34
@oanalavinia oanalavinia linked an issue Jun 4, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Paths to images inserted into diagrams become invalid at upgrade
2 participants