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

Integration with the Visual Editor #59

Open
bitsofmymind opened this issue Oct 7, 2020 · 1 comment
Open

Integration with the Visual Editor #59

bitsofmymind opened this issue Oct 7, 2020 · 1 comment

Comments

@bitsofmymind
Copy link

The Mermaid codes seems to break when used within the Visual Editor. However, usage of the Mermaid syntax sort of implies some proficiency with declarative syntaxes and most users will probably be familiar with Wikicode. That being said, being able to add, move, copy and edit diagrams from within the Visual Editor has its advantages.

Here is what we have done on our wiki to get it all to work:

Using a template to wrap the Mermaid parser functions was required because from what I gather, the Visual Editor treats parser functions like templates which conflicts with the Mermaid syntax. For proper integration of the raw #mermaid parser function, a specific Visual Editor tool that lets a user edit it as basic text would be needed.

I figured I'd share our implementation here in case someone wants to reuse some of the code and bring native Visual Editor support to this extension.

@kghbln
Copy link
Member

kghbln commented Oct 7, 2020

Thank you for sharing your preliminary solution. Indeed, having VE support for this extension will be nice to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants