简体   繁体   English

支持差异的所见即所得富文本编辑器?

[英]WYSIWYG rich text editor that supports diffs?

My web application is similar to StackOverflow in that different users frequently edit the same blob of text.我的 web 应用程序类似于 StackOverflow,因为不同的用户经常编辑相同的文本块。

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?是否有任何支持差异的基于 javascript 的富文本编辑器? 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).理想情况下,差异也可以是富文本,但如有必要,它们可以在 markdown 或类似文件中呈现(我想不惜一切代价避免使用原始 HTML)。

Xopus 4 supports live tracking of text changes . Xopus 4 支持文本更改的实时跟踪 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. Xopus 是基于 web 的所见即所得 XML 编辑器,因此您可以让它编辑您自己的 XML 风格。

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.我认为没有人可以权威地回答这个问题,但我从未听说过 Javascript WYSIWYG 编辑器会产生差异。

Stack Overflow does diffs on the server side. Stack Overflow 在服务器端确实存在差异。 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.如果您需要在用户类型或类似的情况下显示差异,您可以使用 AJAX 将差异工作移交给服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM