1.0.21 • Published 6 years ago

vue-bulma-text-editor v1.0.21

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

vue-bulma-text-editor

npm

PC

Setup

Install

$ npm install vue-bulma-text-editor --save

Use

    import vueBulmaTextEditor from 'vue-bulma-text-editor';
    Vue.component('vue-bulma-text-editor', vueBulmaTextEditor);

HTML

<div id='main'>
    <vue-bulma-text-editor v-model='value'/>
</div>

API

props

nametypedefaultdescription
valueStringInitial markdown value
fieldStringcontentWill set hidden form fields field (html) and field_markdown (markdown)
heightInteger500input and previuw height in px
markdownLimitInt0Sets the limit of characters on markdown, 0 disabled
showMarkdownCounterBooleantrueToggle character counter for markdown at bottom
htmlLimitInt0Sets the limit of characters on html, 0 disabled
showHtmlCounterBooleantrueToggle character counter for htmlat bottom
toolbarArraysee belowSets toolbar layout, must be array of arrays
toolbar: [
  ['undo', 'redo'],
  ['bold', 'italic', 'underline', 'strikethrough', 'mark'],
  ['header'],
  ['ol', 'ul'],
  ['superscript', 'subscript'],
  ['image', 'link', 'video_youtube', 'video_vimeo'],
  ['code', 'hr', 'table', 'quote']
]

Dependencies

1.0.21

6 years ago

1.0.20

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago