r2-summer-note-vue3
Pacote Summer Not para Vue3
710
| Install | |
|---|---|
npm install r2-summer-note-vue3 |
|
| Latest Version: | 1.0.10 |
| License: | MIT |
| Last Updated: | Dec 28, 2021 |
| Links: | GitHub · npm |
Maintainer: dev.r2soft
Vue3 Summernote Editor
A VueJs 3 component for use Summernote WYSIWYG
Install
// npm install
npm install r2-summer-note-vue3 --save
You must be have jQuery at window.$ and install summernote by yourself.
Use as component
- import as global component.
// import SummernoteEditor
import SummernoteEditor from 'r2-summer-note-vue3';
const vueApp = createApp({});
vueApp.component('SummernoteEditor', SummernoteEditor);
- import into a single component.
// import SummernoteEditor
import SummernoteEditor from 'r2-summer-note-vue3';
<template>
<SummernoteEditor
v-model="myValue"
@update:modelValue="summernoteChange($event)"
@summernoteImageLinkInsert="summernoteImageLinkInsert"
/>
</template>
<script>
export default {
// declare SummernoteEditor
components: {SummernoteEditor},
data() {
return {
myValue: '',
}
},
methods: {
summernoteChange(newValue) {
console.log("summernoteChange", newValue);
},
summernoteImageLinkInsert(...args) {
console.log("summernoteImageLinkInsert()", args);
},
}
}
</script>
Options
options:option[]- configurable settings, see Summernote options
- you can define a global options on a
window.SUMMERNOTE_DEFAULT_CONFIGS
Events
update:modelValue- triggered when summernote value change
summernote bare events- summernote events will be triggered in camelCase
"summernote.change": "summernoteChange""summernote.image.link.insert": "summernoteImageLinkInsert"
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 1.0.10 | MIT | |
| 1.0.9 | MIT | |
| 1.0.8 | MIT | |
| 1.0.7 | MIT | |
| 1.0.6 | MIT | |
| 1.0.5 | MIT | |
| 1.0.4 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT |