Home  >  Article  >  Backend Development  >  php 有损用组件 解析word

php 有损用组件 解析word

WBOY
WBOYOriginal
2016-06-13 11:17:51797browse

php 不利用组件 解析word
 利用fckeditor附件上传word文档 上传成功后编辑区显示word的内容而不是上传的路径 且自动清除word格式, 还要考虑到图片和表格等问题 图片要存储到服务器上

php fckeditor
------解决方案--------------------
引用:
利用fckeditor附件上传word文档 上传成功后编辑区显示word的内容而不是上传的路径 且自动清除word格式, 还要考虑到图片和表格等问题 图片要存储到服务器上
              
                  php
                  fckeditor
这个要用控件来实现将Word中的图片上传到服务器的功能。普通的JS没办法实现。你可以在网上搜一下Word图片上传控件。网上已经有了比较成熟的控件了。
------解决方案--------------------
引用:
利用fckeditor附件上传word文档 上传成功后编辑区显示word的内容而不是上传的路径 且自动清除word格式, 还要考虑到图片和表格等问题 图片要存储到服务器上
              
                  php
                  fckeditor
楼主试试这个控件:http://www.cnblogs.com/xproer/archive/2011/04/08/2009500.html
1.FCKEditor2.x。从剪帖板,本地硬盘,第三方软件或Word文档中复制图片,然后点击编辑器工具栏中的”粘贴图片”按钮。图片将自动上传到Web服务器中.

2.FCKEditor2.x编辑器。上传成功

3.CKEditor3.x编辑器。

4.CKEditor3.x-粘贴Excel

5.KindEditor3.x-粘贴图片

6.KindEditor4.x-粘贴Excel


Xproer.WordPaster整合代码如下:
<br>nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br><br><br>    <title>WordPaster For FCKEditor-2.x</title><br>    <meta><br>    <link><br>	<link><br>    <script></script><br>	<script></script><br>	<script></script><br>	<script></script><br><br><br>	<br>	<textarea></textarea><br>	<!--创建FCKEditor控件--><br>	<script><br />		var pasterMgr = new PasterManager();<br />		pasterMgr.Config["PostUrl"] = "http://localhost:10727/asp.net/upload.aspx";<br />		pasterMgr.Load();//加载控件<br /><br />		var oFCKeditor = new FCKeditor('txtContent');<div class="clear">
                 
              
              
        
            </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn