3.1.1 • Published 2 years ago

@amir94rp/ckeditor5-vue3-component v3.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

CKEditor 5 vue 3 component

This package is a custom vue 3 component for CKEditor 5, which is developed to connect CKEditor 5 image manager plugin and laravel vue 3 image manager.

Installation

Install with npm

npm i @amir94rp/ckeditor5-vue3-component

Usage/Examples

<template>
    <ckeditor :editor="editor"
              v-model="editorData"
              :config="editorConfig"
              @open="open = true"
              ref="editor">
    </ckeditor>

    <ImageManager v-model:open="open"
                  @output="insert"
                  :alt="alt"
                  :quality="quality"
                  :multiple="multiple"
                  :select="select"/>
</template>

<script>
import CKEditor from '@amir94rp/ckeditor5-vue3-component';
import ClassicEditor from '@amir94rp/ckeditor5-custom-build';
import ImageManager from "@amir94rp/vue3-file-manager";

export default {
    data(){
        return{
            open:false,
            multiple:true,
            select:true,
            quality:'xl',
            alt:false,

            editor: ClassicEditor,
            editorData: '',
            editorConfig: {
                fontFamily:{

                }
            },
        }
    },

    components:{
        ImageManager,
        ckeditor: CKEditor.component,
    },

    methods:{
        insert:function (value){
            this.$refs.editor.$_insertImages(value);
        },
    },
}
</script>
3.1.1

2 years ago

3.0.2

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago