Install dependencies
npm install
Use vue-cli
to run local example
npm run serve
Build
npm run build
💁♂️ Extra tips:
For debugging jodit
use the unminified version. In the jodit-vue
package export jodit.es2018.js
in node_modules/jodit-vue/src/wrapper.js
//...
export default plugin;
export { JoditEditor, JoditEditor as JoditVue };
export { Jodit } from 'jodit/build/jodit.es2018';
and in src/edit/Editor.vue
import
<script>
import { Jodit, JoditVue } from 'jodit-vue/src/wrapper';
...
</script>
This will make things much easier when developing custom plugins to see what's going on.
Make sure you revert the changes in the src/edit/Editor.vue
before submitting a PR.