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.

how to use lang packages in .vue

See original GitHub issue
  <div class="tinyMce">
    <Editor
      v-model="content"
      :init="config"
    ></Editor>
    <div v-html="content"></div>
  </div>
</template>

<script>
import Editor from '@tinymce/tinymce-vue'

export default {
  name: 'TinyMCE',
  components: {
    Editor
  },
  data () {
    return {
      content: '',
      config: {
        language: 'zh_CN',
        language_url: '../assets/langs/zh_CN.js'
      }
    }
  }
}
</script>```

console error 

`Uncaught SyntaxError: Unexpected token <`

version: 
  "@tinymce/tinymce-vue": "^2.0.0"

lang packages from `https://www.tiny.cloud/get-tiny/language-packages/`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
anyclubcommented, Mar 12, 2019

I solved it, please close it

0reactions
elvishugescommented, Nov 26, 2020

I solved it, please close it

can you share the solution ? please !!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add Internationalization to a Vue Application
Adding International Translations ... Open up the i18n.js file. We are going to create our first translation. We will start with the phrase...
Read more >
Step-by-step: How to Create a Vue Multi-Language App with ...
1. Create a new Vue 3 application · 2. Install vue-i18n-next in your Vue 3 project · 3. Test the i18n configuration on...
Read more >
Vue i18n: Building a multi-language app with locale switcher
For this tutorial we will be using Vue I18n, a great package from the core Vue devs, to show you how to build...
Read more >
vue-lang - npm
Start using vue-lang in your project by running `npm i vue-lang`. There is 1 other project in the npm registry using vue-lang.
Read more >
Localization in Vue.js with vue-i18n - LogRocket Blog
Instead of using component state, let's use Vuex to store and mutate the change in language. The vuex-persistedstate plugin will store the ...
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