Toolbar not working

I was following the instructions on the tutorial in Vue3 and i cannot make the toolbar working.

Captura de pantalla 2022-03-10 a las 14.55.23.png

Could you help me?

This is my code:

<template>
<ejs-documenteditorcontainer
ref="doceditcontainer"
:service-url="serviceUrl"
:enable-toolbar="true"
height="600px">
</ejs-documenteditorcontainer>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import {
DocumentEditorContainerComponent,
Toolbar,
} from '@syncfusion/ej2-vue-documenteditor';
import '@syncfusion/ej2-base/styles/material.css';
import '@syncfusion/ej2-buttons/styles/material.css';
import '@syncfusion/ej2-inputs/styles/material.css';
import '@syncfusion/ej2-popups/styles/material.css';
import '@syncfusion/ej2-lists/styles/material.css';
import '@syncfusion/ej2-navigations/styles/material.css';
import '@syncfusion/ej2-splitbuttons/styles/material.css';
import '@syncfusion/ej2-dropdowns/styles/material.css';
import '@syncfusion/ej2-vue-documenteditor/styles/material.css';

export default defineComponent({
name: 'Editor',
components: {
'ejs-documenteditorcontainer': DocumentEditorContainerComponent,
},
provide: {
DocumentEditorContainer: [Toolbar],
},
data() {
return {
serviceUrl:
'https://ej2services.syncfusion.com/production/web-services/api/documenteditor/',
};
},
});
</script>


And the HTML result in the toolbar is:

Captura de pantalla 2022-03-10 a las 15.17.14.png


1 Reply

SM Suriya Murugan Syncfusion Team March 11, 2022 06:17 AM UTC

Hi Marcos, 

 
Syncfusion Greetings! 

 
From checking the provided code snippet, you have added hyphen when enabling toolbar and service URL. Please change it like below: 

 
<template>
<ejs-documenteditorcontainer
ref="doceditcontainer"
:serviceUrl="serviceUrl" 
:enableToolbar="true" 
height="600px">
</ejs-documenteditorcontainer>
</template>


 
Can you please check the below KB and sample for reference?  

 

 

 
Please let us know if you need any further assistance. 

 
Regards, 
Suriya M. 


Loader.
Up arrow icon