Giter VIP home page Giter VIP logo

cksw's Introduction

ckeditor和swfupload整合版本

ckeditor为4.4 swfupload版本2.2

通过ckeditor自定义插件,对swfupload进行整合,整合注意事项,文件为(ckeditor/plugins/myupload/dialogs/myupload.js line 205附近,line 488)

  1. 使用正确相应的js,swf,图片路径
    
  2. 修改相应的uploadUrl
    
  3. 如果有随文件一块post到服务器的数据,请使用 initEventImageUpload({'token':'123123unhasd12asd'})函数提交
    
  4. post返回数据为json格式,看样例upload.php,没有做图片处理
    

附上post的数据,供图片处理做参考

------------ei4cH2Ij5gL6ei4cH2gL6gL6GI3cH2 Content-Disposition: form-data; name="Filename"

QQ图片20141231160433.jpg ------------ei4cH2Ij5gL6ei4cH2gL6gL6GI3cH2 Content-Disposition: form-data; name="token"

123123unhasd12asd ------------ei4cH2Ij5gL6ei4cH2gL6gL6GI3cH2 Content-Disposition: form-data; name="key"

12313123123123123 ------------ei4cH2Ij5gL6ei4cH2gL6gL6GI3cH2 Content-Disposition: form-data; name="MyUploadFile"; filename="QQ图片20141231160433.jpg" Content-Type: application/octet-stream

------------ei4cH2Ij5gL6ei4cH2gL6gL6GI3cH2 Content-Disposition: form-data; name="Upload"

Submit Query ------------ei4cH2Ij5gL6ei4cH2gL6gL6GI3cH2--

cksw's People

Contributors

orichi avatar

Watchers

 avatar  avatar

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.