Code Monkey home page Code Monkey logo

Comments (5)

Jinqn avatar Jinqn commented on August 29, 2024

后台返回的是什么路径?

一般修改返回路径和修改imagePath参数就可以实现:
假如返回的路径是upload/123.jpg
imagePath可以设置三种类型:
'./php/' //相对路径
'/ueditor/php/' //根路径
'/http://localhost/ueditor/php/' //绝对路径

另外, 在ie下, img属性上的根路径和相对路径, 可能被替换成为绝对路径, 所以插入编辑器的时候会使用_src临时保存路径值, 在getContent时, 通过输出过滤规则_src设置会src属性上

from umeditor.

attsion avatar attsion commented on August 29, 2024

后台返回根路径,但是到了前台会加上http://localhost, 包括_src,我用的chrome浏览器。

from umeditor.

Jinqn avatar Jinqn commented on August 29, 2024

你getContent()的数据正常吗?
会不会是你提交的内容不是通过getContent获取的内容??

from umeditor.

attsion avatar attsion commented on August 29, 2024

是用getContent获取的内容没错。追踪了js半天也不知道是在哪加的哪个http

from umeditor.

Jinqn avatar Jinqn commented on August 29, 2024

你的页面可以访问到吗?加我Q联系:459452372

from umeditor.

Related Issues (20)

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.