Comments (7)
Can you please give an example? Did you think of using XML entities? [I mean you should use &
instead of a single &
inside the XML model]
from dokuwiki-plugin-bpmnio.
The bpmn.io editor exports as &
but &
doesn't work either. I tested a few other XML entities, both < <
and > >
work fine, but double quotes "
break it. The entire model fails to write. See below for rendered HTML when using the below XML.
<div>
<div class="canvas">
<div class="bjs-container" style="width: 100%; height: 100%; position: relative;">
<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" style="position: absolute; bottom: 15px; right: 15px; z-index: 100">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRFiMte9PrwldFwfcZPqtqN0+zEyOe1XLgjvuKncsJAZ70y6fXh3vDT////UrQV////G2zN+AAAABB0Uk5T////////////////////AOAjXRkAAAHDSURBVHjavJZJkoUgDEBJmAX8979tM8u3E6x20VlYJfFFMoL4vBDxATxZcakIOJTWSmxvKWVIkJ8jHvlRv1F2LFrVISCZI+tCtQx+XfewgVTfyY3plPiQEAzI3zWy+kR6NBhFBYeBuscJLOUuA2WVLpCjVIaFzrNQZArxAZKUQm6gsj37L9Cb7dnIBUKxENaaMJQqMpDXvSL+ktxdGRm2IsKgJGGPg7atwUG5CcFUEuSv+CwQqizTrvDTNXdMU2bMiDWZd8d7QIySWVRsb2vBBioxOFt4OinPBapL+neAb5KL5IJ8szOza2/DYoipUCx+CjO0Bpsv0V6mktNZ+k8rlABlWG0FrOpKYVo8DT3dBeLEjUBAj7moDogVii7nSS9QzZnFcOVBp1g2PyBQ3Vr5aIapN91VJy33HTJLC1iX2FY6F8gRdaAeIEfVONgtFCzZTmoLEdOjBDfsIOA6128gw3eu1shAajdZNAORxuQDJN5A5PbEG6gNIu24QJD5iNyRMZIr6bsHbCtCU/OaOaSvgkUyDMdDa1BXGf5HJ1To+/Ym6mCKT02Y+/Sa126ZKyd3jxhzpc1r8zVL6YM1Qy/kR4ABAFJ6iQUnivhAAAAAAElFTkSuQmCC">
</a>
</div>
</div>
</div>
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
<bpmn:process id="Process_1" isExecutable="false">
<bpmn:task id="Task_00eryk4" name="Design & Draw" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="Task_00eryk4_di" bpmnElement="Task_00eryk4">
<dc:Bounds x="5" y="5" width="100" height="80" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
from dokuwiki-plugin-bpmnio.
Thanks a lot for the example. I see the problem clearly now... This is annoying, I now pretty well understood the symptoms but currently I've no clue where the info gets lost. Sorry for slow reaction time (due to private reasons last days).
&#38;
Makes it "work" so actually something is translating already the XML entities too early inside script.js var xml = jQuery(tag).text();
is likely doing too much. I've to look at it more closely and find a solution...
from dokuwiki-plugin-bpmnio.
Using .html()
instead of .text()
did not help. I have to figure out a better (non destructive) way to store and extract the xml string to be handed out the the bpmnio library...
from dokuwiki-plugin-bpmnio.
I believe I have now solved the issue. Can please also confirm with the latest state of master branch that the issue is solved?
from dokuwiki-plugin-bpmnio.
Issue is solved as far as I've tested it. Thank you for the rapid response.
from dokuwiki-plugin-bpmnio.
Thank you too for your report thus contributing to making the plug-in better!
from dokuwiki-plugin-bpmnio.
Related Issues (20)
- Update to newest bpmnio js version
- Integrate the editor HOT 2
- Add toolbar button for bpmnio that adds default content
- Use media file for providing the BPMN diagram content HOT 2
- error: startSectionEdit: $data "plugin_bpmnio" is NOT an array! One of your plugins needs an update. HOT 2
- Add support for DMN
- Add support for CMMN
- Cleanup vendor code
- Does not work with DokuWiki in Docker HOT 1
- Strange visualisation for DokuWiki Version Igor HOT 15
- Print support
- Edit Preview support HOT 1
- IDEA: Optional flag `read-only` to the options to mute the editor.
- Support DMN modeler HOT 1
- Upgrade dmn-js and bpmn-js to their latest respective versions
- Add unit tests for the plugin
- Link to DokuWiki pages HOT 3
- Slow to load with Safari HOT 2
- There is no scroll bar in touch screen mode for big chart
- Add parameter for scaling the whole diagram HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokuwiki-plugin-bpmnio.