Closed pasBone closed 7 years ago
You should also include the language file:
require('froala-editor/js/languages/zh_cn')
require() is Unresolved function or method ?why
@stefanneculai Hi, I have included the language file as you said
import VueFroala from 'vue-froala-wysiwyg'
require('froala-editor/js/languages/zh_cn')
But it went wrong
Uncaught TypeError: Cannot read property 'LANGUAGE' of undefined
Is there any solution?
@parallel-kevin please make sure you are including the editor first
// Require Froala Editor js file.
require('froala-editor/js/froala_editor.pkgd.min')
require('froala-editor/js/languages/zh_cn')
// Require Froala Editor css files.
require('froala-editor/css/froala_editor.pkgd.min.css')
require('font-awesome/css/font-awesome.css')
require('froala-editor/css/froala_style.min.css')
// Import and use Vue Froala lib.
import VueFroala from 'vue-froala-wysiwyg'
vue how to config language? i config language: "zh_cn",
but it had no effect。 thanks.