支持差异的所见即所得富文本编辑器?
我的 Web 应用程序与 StackOverflow 类似,因为不同的用户经常编辑相同的文本块。
目前我们仅支持纯文本,因此可以轻松向用户展示文本在编辑之间的变化。
我想在这些字段中支持富文本,但我的用户是非技术人员,因此任何类型的标记都不是一个选项。
是否有任何基于 javascript 的富文本编辑器支持差异? 理想情况下,差异也将以富文本形式呈现,但如果有必要,它们可以以 markdown 或类似形式呈现(我想避免原始的差异) HTML 不惜一切代价)。
My web application is similar to StackOverflow in that different users frequently edit the same blob of text.
Currently we only support plain text, and therefore it's easy to show users how the text has changed between edits.
I want to support rich text in these fields, but my users are non-technical and therefore markup of any kind is not an option.
Are there any javascript-based rich text editors that support diffs? Ideally the diffs would be in rich text as well, but if necessary they could be rendered in markdown or similar (I'd like to avoid raw HTML at all costs).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Xopus 4 支持实时跟踪文本更改。 与差异相反,更改跟踪允许您跟踪并接受/拒绝多个用户的更改。
Xopus 是一个基于 Web 的 WYSIWYG XML 编辑器,因此您可以让它编辑您自己的 XML 风格。
Xopus 4 supports live tracking of text changes. As opposed to a diff change tracking allows you to follow and accept/reject the changes of multiple users.
Xopus is a web based WYSIWYG XML editor so you can have it edit your own XML flavor.
我认为没有人可以对这个问题权威地回答“不”,但我从未听说过 Javascript WYSIWYG 编辑器可以进行差异。
Stack Overflow 在服务器端进行差异。 如果您寻找服务器端组件来完成这项工作,您可能会有更好的运气。 如果您需要在用户键入时显示差异或类似的内容,您可以使用 AJAX 将差异工作移交给服务器。
I don't think anyone can authoritatively answer no to this question, but I've never heard of a Javascript WYSIWYG editor that does diffs.
Stack Overflow does diffs on the server side. You'll probably have better luck if you look for a server-side component to do the job. If you need to show the diff as the user types, or something like that, you could use AJAX to hand off the diff work to the server.