jodit-vuejs

Jodit Editor for VueJS

Usage no npm install needed!

<script type="module">
  import joditVuejs from 'https://cdn.skypack.dev/jodit-vuejs';
</script>

README

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',
        },
    }
}