Editor items that open modals don't work
Closed this issue · 6 comments
n8all3n commented
I love this editor, but everytime I click on a toolbar item that uses a model, it doesn't work and fails with this error...
index.js:formatted:448 Uncaught TypeError: this.obj(...).modal is not a function
at VueComponent.command (index.js:formatted:448)
at HTMLButtonElement.eval (index.js:formatted:534)
at HTMLButtonElement.dispatch (jquery.js?1157:5183)
at HTMLButtonElement.elemData.handle (jquery.js?1157:4991)
These are the scripts I'm including
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
I'm using vue 2.6.6
alexdpoon commented
Same here.
dvdeo commented
I have the same issue. Plz fix it
nasa8x commented
Sorry for late, github has no notification.
Are you sure you've added jquery?
�Demo: https://nasa8x.github.io/v-markdown-editor/dist/www
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.1/umd/popper.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.min.js"></script> <script type="text/javascript" src="../www/js/app.js?367d964917be8eeaa2c5"></script>
nasa8x commented
Fixed