Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@mycure/vue-wysiwyg
Advanced tools
Readme
A simple wysiwyg editor for Vue.js by MYCURE Inc.
NPM
$ npm install @mycure/vue-wysiwyg
Yarn
$ yarn add @mycure/vue-wysiwyg
CDN
<script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.js"></script>
<script src="https://unpkg.com/@mycure/vue-wysiwyg/dist/mc-wysiwyg.js"></script>
<script>
Vue.use(McWysiwyg.default);
new Vue({
el: '#app',
});
</script>
As a global plugin
import Vue from 'vue';
import VueWysiwyg from '@mycure/vue-wysiwyg';
Vue.use(VueWysiwyg);
As a local component
<template>
<div>
<mc-wysiwyg v-model="html"></mc-wysiwyg>
</div>
</template>
<script>
import { McWysiwyg } from '@mycure/vue-wysiwyg';
export default {
components: {
McWysiwyg
},
data () {
return {
html: ''
}
}
}
</script>
height
- Number
- Sets the min-height
of the editor container.
<mc-wysiwyg v-model="html" :height="500"></mc-wysiwyg>
hide
- Object
- Pass the object property hide
to hide certain features in the editor.
Sample
In example below, strikethrough
and table
will be hidden.
<template>
<div>
<mc-wysiwyg v-model="html" :hide="hide"></mc-wysiwyg>
</div>
</template>
<script>
import { McWysiwyg } from '@mycure/vue-wysiwyg';
export default {
components: {
McWysiwyg
},
data () {
return {
html: '',
hide: {
strikethrough: true,
table: true
}
}
}
}
hide
Properties
property | type | default |
---|---|---|
bold | Boolean | false |
italic | Boolean | false |
underline | Boolean | false |
strikethrough | Boolean | false |
heading | Boolean | false |
alignLeft | Boolean | false |
alignCenter | Boolean | false |
alignRight | Boolean | false |
ol | Boolean | false |
ul | Boolean | false |
url | Boolean | false |
table | Boolean | false |
indent | Boolean | false |
outdent | Boolean | false |
For feature request please create a new issue.
FAQs
A simple wysiwyg editor for Vue.js by MYCURE Inc.
The npm package @mycure/vue-wysiwyg receives a total of 290 weekly downloads. As such, @mycure/vue-wysiwyg popularity was classified as not popular.
We found that @mycure/vue-wysiwyg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.