Giter Site home page Giter Site logo

Comments (5)

fa123456 avatar fa123456 commented on July 25, 2024

zh这里写自己的上传image

from vue-tinymce-example.

loakliu avatar loakliu commented on July 25, 2024

请问下,你的粘贴复制的图片怎么处理的,粘贴后的图片是base64的,而且是本地服务的文件地址

from vue-tinymce-example.

fa123456 avatar fa123456 commented on July 25, 2024

@henniliu 复制不是复制的整个img节点信息吗?
image
图片src肯定是你上传后回显的回显地址

from vue-tinymce-example.

loakliu avatar loakliu commented on July 25, 2024

@fa123456 并不是这里,我说的是,直接截图复制粘贴进富文本里面,我遇到的情况是:1.粘贴会走这个自定义的image_uploader_handle,但当图片上传失败了,接口服务挂了,实际在富文本中,图片还是以本地base64或者fetch url存在的,这种的情况怎么处理

from vue-tinymce-example.

fa123456 avatar fa123456 commented on July 25, 2024

@henniliu 直接监听粘贴事件‘paste’就好了啊
复制图片大致就分两类 网络图片复制 本图片复制
网络复制src对应的是原来的网络地址
本地复制 要么是本地文件相对路径 或者bese64
这不都能自己处理上传吗?

from vue-tinymce-example.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.