Ngx-quill: formula does not work

Created on 21 Oct 2017  路  1Comment  路  Source: KillerCodeMonkey/ngx-quill

adding formula through [modules] enables the formula button, but when typing in a formula en pressing "save" will result in following error:
core.es5.js?de3d:1020 ERROR TypeError: Cannot read property 'render' of undefined at Function.create (quill.js?c8f1:10717) at Object.create (quill.js?c8f1:184) at Block.ContainerBlot.insertAt (quill.js?c8f1:3385) at BlockBlot.insertAt (quill.js?c8f1:7244) at Block.insertAt (quill.js?c8f1:853) at Scroll.ContainerBlot.insertAt (quill.js?c8f1:3382) at ScrollBlot.insertAt (quill.js?c8f1:7003) at Scroll.insertAt (quill.js?c8f1:4222) at Editor.insertEmbed (quill.js?c8f1:2595) at eval (quill.js?c8f1:1377)

help wanted

Most helpful comment

check your javascript console before adding a formular.

There should be an error that KaTeX is required for adding formulars.
https://github.com/Khan/KaTeX

Simply add this to your index.html for testing:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0-alpha1/katex.min.css" integrity="sha384-8QOKbPtTFvh/lMY0qPVbXj9hDh+v8US0pD//FcoYFst2lCIf0BmT58+Heqj0IGyx" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0-alpha1/katex.min.js" integrity="sha384-GR8SEkOO1rBN/jnOcQDFcFmwXAevSLx7/Io9Ps1rkxWp983ZIuUGfxivlF/5f5eJ" crossorigin="anonymous"></script>

i added an example to https://killercodemonkey.github.io/ngx-quill-example/

>All comments

check your javascript console before adding a formular.

There should be an error that KaTeX is required for adding formulars.
https://github.com/Khan/KaTeX

Simply add this to your index.html for testing:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0-alpha1/katex.min.css" integrity="sha384-8QOKbPtTFvh/lMY0qPVbXj9hDh+v8US0pD//FcoYFst2lCIf0BmT58+Heqj0IGyx" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0-alpha1/katex.min.js" integrity="sha384-GR8SEkOO1rBN/jnOcQDFcFmwXAevSLx7/Io9Ps1rkxWp983ZIuUGfxivlF/5f5eJ" crossorigin="anonymous"></script>

i added an example to https://killercodemonkey.github.io/ngx-quill-example/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

carlhussey picture carlhussey  路  21Comments

m41n picture m41n  路  18Comments

wupaz picture wupaz  路  25Comments

bMil21 picture bMil21  路  16Comments

tokaika picture tokaika  路  23Comments