How to extend the InsertImage in the Editor to Upload Images in Vue

0 Answers 16 Views
Editor
Lucía
Top achievements
Rank 1
Iron
Lucía asked on 11 Apr 2024, 04:47 PM | edited on 11 Apr 2024, 04:47 PM

Hello! 

We want to customize the InsertImage tool in the Editor, as we want to allow image upload. We found the React Documentation, and that's exactly what we want in Vue.

React Editor Component & Paste, Drag and Drop, and Upload Images - KendoReact Docs & Demos (telerik.com)

In React, (see this example main.tsx - nodebox - CodeSandbox) it looks straightforward to stop using the InsertImage from EditorTools and use the one in the example. 

import { InsertImage } from './insertImageTool';

// const { InsertImage } = EditorTools;

But in Vue (main.vue - nodebox - CodeSandbox), how do we replace the InsertImage by the implementation in insertImageTool? 

      tools: [
        ["InsertImage"]
      ],


Thank you 

Lucía

No answers yet. Maybe you can help?

Tags
Editor
Asked by
Lucía
Top achievements
Rank 1
Iron
Share this question
or