jodit-vuejs

1.0.1 • Public • Published

jodit-vue

Jodit wrapper for Vue JS

###example

<template>
    <div>
        <Editor model="description" options="options"/>
    </div>
</template>
<script>

    import 'jodit/build/jodit.min.css'
    import jodit from 'jodit-vuejs'

    export default {
        components: {
            'Editor': jodit
        },
        data: function() {
            return {
                description: '',
                options: {
                    width: '100%',
                    minHeight: 400,
                    uploader: {
                        url: 'editor?action=fileUpload'
                    },
                    filebrowser: {
                        ajax: {
                            url: 'editor',
                        },
                    }
                }
            }
        },
    }
</script>

example options

{
    width: '100%',
    minHeight: 400,
    uploader: {
        url: 'editor?action=fileUpload'
    },
    filebrowser: {
        ajax: {
            url: 'editor',
        },
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i jodit-vuejs

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

428 kB

Total Files

7

Last publish

Collaborators

  • ivybridge-3c33