@odyzeo/wysiwyg
v2.10.0
Published
## Project setup ``` npm install ```
Downloads
16
Keywords
Readme
wysiwyg
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Run your unit tests
npm run test:unit
Run your end-to-end tests
npm run test:e2e
Lints and fixes files
npm run lint
Translations
When using Wysiwyg in project we expect you are using v18n
translation plugin.
So we use $t
and $tc
functions in this plugin, hope you will use v18n
and it will translate the keys.
If you are not using v18n
you can define $t
and $tc
mixin as you can see in App.vue.
You can get default (Slovak!) translation keys:
import { translations } from '@/index'; // flat 'key: value' object w/ available strings
import { sk } from '@/index'; // nested 'key: value' object w/ available strings
Extract translations w/
npm run lang
Customize configuration
#TODO
- move WysiwygSnippet to plugins
- move WTabPreviewMobile to plugins
- move WCopyToClipboard and WPasteFromClipboard to plugins