link icon indicating copy to clipboard operation
link copied to clipboard

I want to send url to my backend and get the response just like image tool

Open Abhii5496 opened this issue 11 months ago • 0 comments

const tool = { image: { class: Image, shortcut: 'CMD+I', config: { uploader: { async uploadByFile(file) { // console.log(file); const fileData = await FiletoBase64(file); // console.log(fileData); const res = await uploadImage({ image: fileData }); if (res.success === 1) { return res; } }, inlineToolbar: true, }, }, linkTool: { class: LinkTool, inlineToolbar: true,

  config: {
   async endpoint(url): await axios.get(`/getMeta/${url_will_be_here_just like_image}`)
  },
},

}, }; ilke this or something

Abhii5496 avatar Apr 03 '24 06:04 Abhii5496