您可以在浏览器中对Word文档进行复杂的编辑吗?

发布于 2024-07-16 10:29:59 字数 283 浏览 5 评论 0原文

我的一个朋友想要一个应用程序,人们可以上传 Word(或文本)格式的文档,然后允许人们在浏览器中编辑这些文档。

是否有任何机制支持添加文本“气泡”来添加评论? 要么漂浮,要么偏向一边。

能够保存回 Word 格式也是必须的。 或者至少,Word 支持的某种格式仍然是可编辑的。 将其保存为图像是不可接受的。

我正在考虑在FCK编辑器窗口中打开Word文档,但FCK似乎只具有“正常”内联文本编辑功能(尽管它很棒)。

这可行吗?

A friend of mine wants to have an application where people can upload documents in Word (or text) format, and then allow people to make edits to those documents within a browser.

Is there any mechanism that would support adding text "bubbles" for adding comments? Either floating, or off to the side.

Being able to save back to Word format is a must too. Or at least, some format supported by Word, that would still be editable. Saving it as an image is not acceptable.

I was thinking about opening the Word Document in an FCK Editor window, but FCK only seems to have "normal" inline text editing capabilities (although it is great).

Is this feasible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

夏至、离别 2024-07-23 10:29:59

是的,这是可行的。 Google 已经做到了(并且确实有评论)。 Adobe 也是如此。 我确信还有更多。

Yes it is feasible. Google has done that (and it does have comments). So has Adobe. I'm sure there is more.

一萌ing 2024-07-23 10:29:59

Xopus 提供了一个可编程平台,允许您在所见即所得环境中定义可编辑的 XML。 您可以使用它来定义要编辑的内容 (XML)、要根据哪些规则进行编辑 (XSD) 以及编辑时希望其外观如何 (XSL)。 然后将它们与 Javascript API 结合在一起。

换句话说,您可以很容易地定义一个包含多个带有可选注释的段落的文档,然后将它们完全按照您想要的方式显示为气泡; 保存后,可以执行服务器上的脚本将 XML 转换为 Word 文档。

查看演示

Xopus provides a programmable platform that allows you to define editable XML within a WYSIWYG environment. You could use it to define what you want to edit (XML), against which rules you want to edit it (an XSD) and how you want it to look while you edit it (XSL). Then you tie that all together with the Javascript API.

In other words, you could pretty easily define a document that contains multiple paragraphs with optional comments and then have them displayed as bubbles exactly the way you want them; when saved, a script on the server could be executed that converts the XML to a Word document.

Take a look at the demos.

乱世争霸 2024-07-23 10:29:59

如果它们是 Word 2007 文档,则可以使用 Silverlight下面是一个示例应用程序,它使用 Silverlight 打开 Word 2007 文档并在浏览器中显示它。

由于 StackOverflow 是一个程序员网站,因此我假设您是一名程序员。 您可以使用 Silverlight 将气泡和注释添加到 Word 2007 文档中,但您需要了解 VB.NET 或 C#。

If they are Word 2007 documents, you can use Silverlight. Here's an example application that uses Silverlight to open a Word 2007 document and display it in the browser.

Since StackOverflow is a programmer site, I'll assume you're a programmer. You can use Silverlight to add the bubbles and annotations to a Word 2007 document, but you'll need to know VB.NET or C#.

孤君无依 2024-07-23 10:29:59

看一下 docx2web.appspot.com,它(目前)是一个非常简单的编辑器,其显着特征是浏览器直接操作(或多或少)docx 的“平面 OPC”版本。

这意味着无论是传入还是传出都没有有损转换。 例如,当您在编辑后保存时,原始 docx 中的任何内容都会往返返回到 Word。

就对旧版 .doc 的支持而言,POI 可用于将它们转换为 .docx(尽管您的情况可能会有所不同)。

Take a look at docx2web.appspot.com which is (currently) a very bare bones editor with the distinguishing feature that the browser is directly manipulating (more or less) the "flat OPC" version of the docx.

This means that there is no lossy conversion on either the way in or the way out. So for example, when you save after editing, anything which was in the original docx is round tripped back to Word.

As far as support for older .doc is concerned, POI can be used to convert them to .docx (although your mileage may vary).

凉宸 2024-07-23 10:29:59

你为什么要试图与谷歌文档竞争?

我知道 TinyMCE 提供了一些丰富的浏览器编辑控件。 上次我看它时,它包含了我通常在 Word 中使用的 100% 的内容,然后还有一些。 另一方面,我可能拥有 MS Word 提供的 1% 的功能。 全部实施起来非常困难。

至于保存为 MS Word 兼容格式。 我确信这是可能的。 保存为非文档格式可能会更容易。
至于弹出窗口等,可以使用 jquery UI 或任何其他 javascript 框架轻松构建。

底线:是的,这是可能的,但为什么?!

Why are you trying to compete with google docs?

I know that TinyMCE provides some rich controls for in browser editing. Last time i looked at it, it had 100% of the stuff i would normally use in word, and then some. On the other hand, i probably has 1% of the features that MS word provides. It would be VERY difficult to implement it all.

As far as saving to MS word compatible format. i am sure its possible. it would probably be easier to save to a non-doc format.
As far as popups etc, those can be easy built using jquery UI or any other javascript framework.

Bottom line: yes, its possible, but why?!

娇柔作态 2024-07-23 10:29:59

有可能的。 例如,eyeOS 有一个文本处理应用程序,能够打开和处理 Microsoft Office 和 OpenOffice.org 文本文档。

It is possible. For example eyeOS has a text processing application able to open and process Microsoft Office and OpenOffice.org text documents.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文