Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150037 | Dec 18,2019 12:50 PM UTC | Jun 1,2020 08:17 AM UTC | Vue | 6 |
![]() |
Tags: RichTextEditor |
<template>
<div>
<ejs-richtexteditor ref="rteObj":toolbarSettings="toolbarSettings" :focus="onFocus" :blur="onBlur">
</ejs-richtexteditor>
</div>
</template>
<script>
import Vue from "vue";
import { RichTextEditorPlugin, Toolbar, Link, Image, Count, HtmlEditor, QuickToolbar, Table } from "@syncfusion/ej2-vue-richtexteditor";
Vue.use(RichTextEditorPlugin);
export default Vue.extend({
data: function() {
return {
toolbarSettings: {
enable: false,
enableFloating: false,
type: "MultiRow"
}
};
},
methods: {
onBlur: function(e) {
this.$refs.rteObj.ej2Instances.toolbarSettings.enable = false;
},
onFocus: function(e) {
this.$refs.rteObj.ej2Instances.toolbarSettings.enable = true;
}
},
provide: {
richtexteditor: [ Toolbar, Link, Image, Count, HtmlEditor, QuickToolbar, Table ]
}
});
</script>
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.