Thanks! I did as you suggested (without adding the styles as I need to go to CSS school to know how) and all I ended up with was the long ASCII thing being displayed in a nicer font. But you know what? It's easier just to screen capture the diagram and add it in as a 'media' in the wiki! Seriously, thanks to you and all the developers for web2py, it really is awesome.
On Wednesday, May 20, 2015 at 6:19:44 AM UTC-7, Massimo Di Pierro wrote: > > For security reasons markmin does not allow scripts but you can embed this > in your own view: > > <script type="text/javascript" src=" > https://www.draw.io/js/embed-static.min.js"></script> > > So the only problem is allowing users to generate > > <div class="mxgraph">...</div> > > You can do it in markmin with > > ``...``:mxgraph > > You have to handle the style in your own CSS. > > Alternatively look into http://experts4solutions.com/markmin2 > (markmin.js) This one will allow you cut and paste the html directly in the > markmin and has an option (in JS) to allow <scripts>. > > > > > On Tuesday, 19 May 2015 00:02:41 UTC-5, Ben Lawrence wrote: >> >> HI >> drawio.com allows you to draw diagrams and export them. One format is >> html with a javascript. An example is >> >> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" >> ><![endif]--> >> <!DOCTYPE html> >> <html> >> <head> >> <title>AEMdatabase</title> >> </head> >> <body> >> <div class="mxgraph" style="position:relative;overflow:auto;width:100%;"> >> <div >> style="width:1px;height:1px;overflow:hidden;">7ZxRb+I4EIB/TaW7hz2FhAB9LJS921N3ryqV7tklBqxNYuSYUvrrdxyPIYnTFjYhbSUDEskkGSfzje0Z23ARTJKnvwVZr77ziMYXvhc9XQTXFz68Bh58KclOS4aDoRYsBYu0qHcQzNgzRSFet9ywiGalEyXnsWTrsnDO05TOZUm24HG5iDVZGvUHwWxOYlv6P4vkCqU9D29GHfiHsuUKyxmFeCCTO6MjoguyieWXXATH1OGEGF14/pOnd7+MLrHMHUouA1NUWrqnZ86TkkDQbG8s1LpgeF+4/8BFRAWSQFnM0p9FywVToCc4hyvVVvI0obEiaODoy76+cHRvMEHTUtkvXYAGeSTxBu99whN41p1lx2zLkpiksDdeySQGYQ82FzyVMzwJLDaer1gc3ZAd36jiM0nmP83eeMUFe4bzibkYD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hOkhxLccMfZhjv8yhxeMELab45yeRilN1qBaOdTOMzlYrQ3yera8zFWktZlURlsQpBGWKYWVTiYTWB2OaXXt5fGGJiSO5DNQHY5r9e3F8a4hWptQOx0Tq9vTwXdCgaRiHSr1Jpy7HJKr29P7dzRjMcbFe86kg1Jdrl2tG9P8Fyr7tEhbISwyzWjJuv5pAMQ2CUURyB0KvWOIxDBqJxJDoMKp6NHIPyKpkFVU3sjEKE9AgEhEmTXbtih06XDoYdJx5trh702ar+drrq1w0dA1bXlQ4w4hHaS6tYOt8Cwy4GGgd34fqJO2HQdpdmg3CvfcxrAsDI4B787GzSoaOpXNbXXCQ/s5rhlP4AKfS43MD/RLbrBS3WsMzcYmf8IMW5ghp1OdoNhRVO/qqlFN7Cb9M/jBmYk4Rg3eMm2/qimA33VT05pGV4q7PR5YjN7a8JzD6f1z+AS9gjmJ+8h9OD6OzYNl8ZT9/R+0w1GFUVfjFs0dgPYPfyNkT798I9UwfQX</div> >> </div> >> <script type="text/javascript" src=" >> https://www.draw.io/js/embed-static.min.js"></script> >> </body> >> </html> >> >> >> How could I embed this into the markmin page of web2py's included wiki >> engine so that it would generate the drawing? >> Thanks in advance... >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

