Closed andyboeh closed 2 years ago
I had to partially revert action/viewer.php as DokuWiki's minifier can't minify the original bpmnio version properly. I also updated it to v0.15.1
Thanks for the contribution. I've been on vacation a couple of weeks and now I have a quite high stack of tasks to get rid of. As the code is used in production I need to carefully review and check the code. Please be patient. Best regards.
As an administrator I would like to disable editing either page wide and/or overwrite the global setting with an attribute on the
(Otherwise I like that an editor is there if you need it)
Thanks for the comment! I plan to add the editor alike the table editor for example. The plugin would not bypass normal page rules, that means people without write rights won't be able to change things. But you are right, if the editor is too easily accessible someone might inadvertently modify things. Maybe adding an optional flag like read-only
to the options will mute the editor. I think that is a good idea.
Wow, this sounds fantastic! I would love to see this merged into the main branch. Is this still being actioned?
The current state needs to be adapted to the current master to get mergeable. As our flow involves using an external editor and are only interested in the viewer I do not have much time to make this fit test and maintain it. I definitively would merge a clean patch if it is implemented as opt-in.
Closing as obsoleted by #32
This adds initial support for an editor component. I did quite some changes to your code:
The editor works similarly to "edittable": You get a sall "Edit" icon beneath the diagram and, once you click it, you can edit just this diagram. The formatted, changed XML saved back to the Wiki page.
What's missing, but would be nice, is a tool bar button that adds this default content.