Link and Image both don't work and throw Error
See original GitHub issueI am trying since days now to get it to work, but both Link and Image throw the below Error when I click on the icon.
TypeError: c is null theme.min.js 1:91433
I have done a npm so the files are in the node folder. I have downloaded tinymce and saved that in my js folder. I than added below line to load the js files.
<script src="{{ asset('js/tinymce/themes/modern/theme.min.js')}}"></script>
<script src="{{ asset('js/tinymce/tinymce.min.js')}}"></script>
After that I created my component with the form and the Editor. I only use the data() section nothing in mounted or computed. What is missing that it throws the error?
<template>
<div>
<form method="post" action="" @submit.prevent="onSubmit" @keydown="errors.clear()">
<fieldset class="add-form"><legend class="add-form">
<h3>Article Details</h3></legend>
<label class="required" for="fname">Headline</label>
<input class="form-control" v-model="post.title" id="fname" placeholder="Headline">
<editor v-model="post.body"
:plugins="myPlugins"
:toolbar ="myToolbar1"
></editor>
</form>
</div>
</template>
import Editor from '@tinymce/tinymce-vue';
import editorinymce from 'tinymce';
import 'tinymce/themes/modern/theme';
import 'tinymce/plugins/wordcount';
import 'tinymce/plugins/code';
import 'tinymce/plugins/preview';
export default{
components: {
'tinymce': Editor
},
data () {
return {
name: 'app',
myToolbar1: 'undo redo | bold italic underline preview | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
myPlugins: "link image code preview",
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to handle loading of images that may not exist?
If an image does not exist, we can replace it with a new one. Another way to handle this issue is by listening...
Read more >Flutter - How to catch an error when call a picture with a bad ...
I tried to call a picture with a bad url and show an image when failed... but flutter throw an exception and try...
Read more >How to set a default image when an image fails to load
When an image fails to load due to connection, broken link, or whatever reason, the onerror event is fired.
Read more >Top 5 Ways To Prevent Broken Images And Links On Your ...
You wouldn't hang around long on a website with a bunch of missing images or broken links. Don't let preventable problems chase away ......
Read more >Image component does not work with Storybook · Issue #18393
Basically it throws an error that webpack can't resolve the next-image-loader module. Even tried adding the npm package itself but it doesn't ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hmm, are you adding a script tag AND importing tinymce in your javascript? You should only do one.
Great that it’s working!