有没有一个程序可以让我使用本机编辑器编辑网页文件?
在我尝试自己编写以下函数之前,我想知道是否已经存在某些东西。
我想做的是单击我的网站上给定文档的编辑链接,然后在本地计算机上的本机编辑器中启动该文档(通过临时文件机制)。
当我在本机编辑器中保存文档时,该文档会通过 HTTP PUT 返回到网站。这可以通过观察文件的写入情况或观察编辑器进程的退出来完成。
这样我可以更轻松地在网络上编辑文档(而不是经历下载/编辑/上传周期)。
我的设计将按如下方式工作:
- 在本地计算机上注册 .webedit 文件。
- 下载 .webedit 文件后,使用该文件启动 webedit.exe。
- 该文件包含一个 URL (http://server/document),该 URL 会根据安全数据库进行检查,以确保我们只打开允许的 URL。
- URL 将下载到临时位置。
- 临时文件在本机编辑器中启动。
- 监视文件的更改,并在更改检测时上传(HTTP PUT)(或者当编辑器关闭时,如果它不是单实例多文档编辑器)。
许多 FTP / SCP GUI 都具有此类功能,但我一般无法在网络上找到它,也无法找到允许插入此功能的共享库。
有人见过这样做的程序吗?
Before I attempt to program the following function myself, I wonder if something already exists.
What I would like to do is click an edit link on my website for a given document, and have that document launch in the native editor on my local machine (via a temporary file mechanism).
When I save the document in the native editor, the document is HTTP PUT back to the website. This can be accomplished by watching the file for writes, or watching the editor process for exit.
This way I can more easily edit documents on the web (instead of going through the download / edit / upload cycle).
My design would work as follows:
- Register .webedit files on the local machine.
- When a .webedit file is downloaded, launch webedit.exe with the file.
- The file contains a URL (http://server/document) which is checked against a security database to ensure we're only opening allowed URLs.
- The URL is downloaded to a temporary location.
- The temporary file is launched in the native editor.
- The file is watched for changes, and uploaded (HTTP PUT) on change detection (or when the editor is closed, if it's not a single-instance multiple-document editor).
Lots of FTP / SCP GUIs have this type of functionality, but I have not been able to find it for the web in general, or a shared library that allows you to plug in to this function.
Has anyone seen a program that does this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SharePoint 的工作原理如下。
它非常适合在企业环境中管理共享文档。
用户甚至可以签出/签入文档&这些功能非常可扩展......如果您知道如何的话,您几乎可以自定义任何东西。
编辑:
既然你使用的是Linux..我听说Alfreco是一个很好的选择。
我从未使用过它,但我知道有几个组织使用它而不是 SharePoint。
它还与 Microsoft Office 集成。
而且,它肯定会更便宜。
SharePoint works like this.
It's great for managing shared documents in corporate environments.
Users can even checkout/checkin documents & the features are very extensible..you can customize pretty much anything if you know how.
Edit:
Since you're on Linux..i've heard that Alfreco is a great alternative.
I've never used it, but I know a couple organizations using it instead of SharePoint.
It integrates with Microsoft Office as well.
Also, it will definitely be cheaper.