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.
vue2-tinymce-editor
Advanced tools
Readme
A TinyMCE WYSIWYG editor component for your Vue products
This project is an upgrade version of vue-tinymce-editor.
I updated version to vue(2.6.11) and tinymce(5.6.2) and added new features.
You can use Yarn or NPM
npm install vue2-tinymce-editor
OR
yarn add vue2-tinymce-editor
<template>
<div id="app">
<vue2-tinymce-editor v-model="content"></vue2-tinymce-editor>
</div>
</template>
<script>
import { Vue2TinymceEditor } from "vue2-tinymce-editor";
export default {
components: {
Vue2TinymceEditor
},
data() {
return {
content: "<h1>Some initial content</h1>"
};
}
};
Name | Type | Default | Description |
---|---|---|---|
id | String | - | Editor container id |
v-model | String | - | The content or data property you wish to bind with it |
width | Numeric | auto | Width of the editor container |
height | Numeric | 300px | Height of the editor container |
options | Object | - | Configure object for advanced use |
Name | Parameters | Description |
---|---|---|
editorChange | Event | Emitted on TinyMCE's onchange event |
editorInit | Event | Emitted when editor is initialized |
<template>
<div id="app">
<vue2-tinymce-editor :id="your-id" v-model="content" :width:="500" :height="300" :options="options"></vue2-tinymce-editor>
</div>
</template>
<script>
import { Vue2TinymceEditor } from "vue2-tinymce-editor";
export default {
components: {
Vue2TinymceEditor
},
data() {
return {
content: "<h1>Some initial content</h1>",
options:{
menubar:false,
plugins: 'advlist autolink charmap code codesample directionality emoticons',
toolbar1:'fontselect | fontsizeselect | formatselect | bold italic underline strikethrough forecolor backcolor',
toolbar2:'alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | link table removeformat code',
......
// any other tinymce options
}
};
}
};
You can access the editor by add a ref:
<vue2-tinymce-editor id="d1" v-model="data" ref="te"></vue2-tinymce-editor>
Then access the editor like this:
this.$refs.te.editor
MIT
FAQs
A TinyMCE WYSIWYG editor component for your Vue products
The npm package vue2-tinymce-editor receives a total of 497 weekly downloads. As such, vue2-tinymce-editor popularity was classified as not popular.
We found that vue2-tinymce-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.