vue-wysiwyg-simple

A WYSIWYG HTML editor for Vue 2
644
Install
npm install vue-wysiwyg-simple
Latest Version:1.0.6
Vue:2
License:MIT
Last Updated:Mar 30, 2023
Links: npm
Maintainer: havunen

This is fork of an awesome vue-wysiwyg

vue-wysiwyg-simple has reduced number of features available to improve robustness of the editor

  • Fewer tags supported ( see the list at the end of the readme )
  • All copy-pasted html is cleaned and unicode control characters removed
  • Drag and drop support removed
  • Upload image logic removed
  • IE11 is not supported
  • Removed out of date development packages
  • Updated all develoopment packages

Usage

Install vue-wysiwyg-simple

npm install vue-wysiwyg-simple --save

In your main.js:

import wysiwyg from "vue-wysiwyg-simple";
Vue.use(wysiwyg, {}); // config is optional. more below

Also make sure to load the stylesheet. The exact syntax will depend on what preprocessor you use.

@import "~vue-wysiwyg-simple/dist/vueWysiwyg.css";

In your components:

<wysiwyg v-model="myHTML" />

Config options

All keys are optional.

{
  // { [module]: boolean (set true to hide) }
  hideModules: { "bold": true },

  // limit content height if you wish. If not set, editor size will grow with content.
  maxHeight: "500px",

  // specify editor locale, if you don't specify this, the editor will default to english.
  locale: 'hu'
}

Available Modules:

  • bold
  • italic
  • underline
  • link
  • unorderedList
  • removeFormat
  • separator

Available Locales:

  • english
  • dutch
  • german
  • hungarian
  • italian
  • portuguese
  • spanish
  • finnish
  • swedish

Related Packages

@dstepas/vue-wysiwyg

A WYSIWYG HTML editor for Vue.js

4,979 0
vue-wysiwyg-fixed

A WYSIWYG HTML editor for Vue.js

1,856
vue-wysiwyg

A WYSIWYG HTML editor for Vue.js

564,994
@ddosdor/vue-sh-wysiwyg

Simple and very basic Wysiwyg editor for Vue.js

320 3
@markweave/vue2

Vue 2 adapter for the Markweave Markdown-first WYSIWYG editor.

9,500 1

Version History

Version Released Vue License
1.0.6 ^2.7.14 MIT
1.0.5 ^2.7.14 MIT
1.0.4 ^2.7.14 MIT
1.0.3 ^2.7.14 MIT
1.0.2 ^2.7.14 MIT