Skip to content

imperavi/vue-redactorx

Repository files navigation

Redactor X Vue.js Component

Vue-redactorx helps Redactor X to work as a Vue.js component. The Redactor X Vue component is under MIT license. However, to use this component, you should purchase a Redactor X license.

Please see the buying page and License Agreement.

Compatibility

  • Vue.js 2.x

Intialization

One Way Binding

Import

import '/your-dist-path/redactorx.min.js';
import './vue-redactorx.js';

Component

<div id="app">
    <RedactorX v-model="content" :config="configOptions"></RedactorX>
    {{ content }}
</div>

App

new Vue({
    el: '#app',
    data() {
        return {
            content: '<h1>Hello and welcome</h1>',
            configOptions: {}
        }
    }
});

Two Way Binding

Import

import '/your-dist-path/redactorx.min.js';
import './vue-redactorx.js';

Component

<div id="app">
    <RedactorX v-model="content" :config="configOptions"></RedactorX>
    <textarea v-model="content"></textarea>
</div>

App

new Vue({
    el: '#app',
    data() {
        return {
            content: '<h1>Hello and welcome</h1>',
            configOptions: {}
        }
    }
});

Call with options

new Vue({
    el: '#app',
    data() {
        return {
            content: '<h1>Hello and welcome</h1>',
            configOptions: {
                plugins: ['table']
            }
        }
    }
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published