Php lossy component parsing word

Source: Internet
Author: User
Php does not use components to parse word & nbsp; use fckeditor attachments to upload word documents & nbsp; after the upload is successful, the editing area displays the word content instead of the uploaded path & nbsp; and the word format is automatically cleared, & nbsp; pictures and tables should also be taken into account. & nbsp; picture should be parsed by php without using components
After a word file is uploaded using the fckeditor attachment, the content of the word is displayed in the editing area instead of the upload path and the word format is automatically cleared. In addition, pictures and tables must be stored on the server for php fckeditor.
------ Solution --------------------
Reference:
After a word file is uploaded using the fckeditor attachment, the content of the word is displayed in the editing area, instead of the upload path, and the word format is automatically cleared. images and tables must be stored on the server.

Php
Fckeditor
This function uses controls to upload images in Word to the server. Common JS cannot be implemented. You can search for the Word Image upload control on the Internet. You already have mature controls on the Internet.
------ Solution --------------------
Reference:
After a word file is uploaded using the fckeditor attachment, the content of the word is displayed in the editing area, instead of the upload path, and the word format is automatically cleared. images and tables must be stored on the server.

Php
Fckeditor
The landlord try this control: http://www.cnblogs.com/xproer/archive/2011/04/08/2009500.html
1. FCKEditor2.x. Copy an image from the clipboard, local hard disk, third-party software, or Word document, and click "paste image" in the editor toolbar. The image is automatically uploaded to the Web server.

2. FCKEditor2.x editor. Uploaded

3. CKEditor3.x editor.

4. CKEditor3.x-Paste Excel

5. KindEditor3.x-paste the image

6. KindEditor4.x-Paste Excel


The Xproer. WordPaster integration code is as follows:




WordPaster For FCKEditor-2.x



Script
Script
Script
Script






Var pasterMgr = new PasterManager ();
PasterMgr. Config ["PostUrl"] = "http: // localhost: 10727/asp.net/upload.aspx ";
PasterMgr. Load (); // Load the control

Var oFCKeditor = new FCKeditor ('txtcontent ');

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.