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

Integrate fornac.css styles into svg when exporting for file download #3

Open
j-4 opened this issue Jun 30, 2015 · 3 comments
Open
Assignees

Comments

@j-4
Copy link
Collaborator

j-4 commented Jun 30, 2015

Thanks.

@mnori
Copy link

mnori commented Aug 6, 2015

Having the same problem. I'm keeping all the fornac files under a seperate static subdomain, and explicitly including the CSS on my page. When fornac runs it tries to pull the CSS by ajax, leading to a 404 and JS error.

Other than that, great library. The structure diagrams look really nice :)

@j-4
Copy link
Collaborator Author

j-4 commented Oct 10, 2016

Best would probably be to include the css file as string <style> tag in any generated svg plot. with the webpack framework it should be possible to do this without code duplication, right?

@j-4
Copy link
Collaborator Author

j-4 commented May 20, 2019

In the development branch we changed the way how styles are included in the forna conatainer.
However, we still need a way to render the styles inline when users want to export and save the svg to their disk.
This will help:
https://stackoverflow.com/questions/15181452/how-to-save-export-inline-svg-styled-with-css-from-browser-to-image-file
https://stackoverflow.com/questions/15181452/how-to-save-export-inline-svg-styled-with-css-from-browser-to-image-file?noredirect=1

@j-4 j-4 self-assigned this May 20, 2019
@j-4 j-4 changed the title fornac.css location which gets pulled by ajax call should be an config option Integrate fornac.css styles into svg when exporting for file download Jun 6, 2019
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

No branches or pull requests

2 participants