grav-plugin-diagrams icon indicating copy to clipboard operation
grav-plugin-diagrams copied to clipboard

Diagram not displaying

Open StarSyth opened this issue 7 years ago • 4 comments

I installed via the admin plugin, wrote this out;

[flow] st=>start: start e=>end: finished op1=>operation: login to auth|success sub1=>subroutine: register Your e-mail|success cond=>condition: email registered?|invalid io=>inputoutput: continue to dashboard|calm st->op1->cond cond(yes)->io->e cond(no)->sub1(right)->op1 [/flow]

And it just displays it as text... am I missing somthing?

StarSyth avatar Apr 11 '18 01:04 StarSyth

Hi @StarSyth ! Is only flow diagrams which are not working? There are several open issues related to this kind of behavior, I'm investigating the cause. Which theme and page template do you use?

Seao avatar Apr 11 '18 19:04 Seao

Hydrogen v5.4.23 with Gantry 5 and using the default template. None of the diagrams work.

StarSyth avatar Apr 11 '18 19:04 StarSyth

Same issue with TwentyFifteen and default page.

kvandenbrande avatar Apr 11 '18 21:04 kvandenbrande

I had the same problem, my template was not using jQuery and this plugin relies on it (check your console for related JavaScript errors).

Adding the dependency solved the issue:

<script
  src="https://code.jquery.com/jquery-3.3.1.min.js"
  integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
  crossorigin="anonymous"></script>

ntopulos avatar Mar 29 '19 01:03 ntopulos