Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WYSIWYG rich text editor that supports diffs?

Tags:

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).

like image 474
Tom Lehman Avatar asked Feb 24 '09 22:02

Tom Lehman


2 Answers

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.

like image 162
Sjoerd Visscher Avatar answered Oct 06 '22 00:10

Sjoerd Visscher


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.

like image 23
Patrick McElhaney Avatar answered Oct 06 '22 00:10

Patrick McElhaney