question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Link and Image both don't work and throw Error

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fyrkantcommented, Dec 14, 2018

Hmm, are you adding a script tag AND importing tinymce in your javascript? You should only do one.

0reactions
fyrkantcommented, Dec 14, 2018

Great that it’s working!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found