Looking for a WYSIWYG editor with Track Changes

933 views
Skip to first unread message

Hoolahawk

unread,
Jul 15, 2008, 7:56:27 PM7/15/08
to farcry-dev
Hi Everyone,

Our team want to have a WYSIWYG editor that does track changes. From
what I can tell TinyMCE does not provide this function.

Can anyone recommend a editor that does track changes (open source or
paid is fine)?

I am assuming that the editor can be changed with minimum hassle, is
there any documentation on doing this?

Kind Regards

David

shi...@gmail.com

unread,
Jul 15, 2008, 10:46:08 PM7/15/08
to farcr...@googlegroups.com
What do mean by track changes? If you want to be able to compare
differences in versions that's different from seeing changes when
editing the html.

Blair

Hoolahawk

unread,
Jul 16, 2008, 12:36:50 AM7/16/08
to farcry-dev
Good point, I suppose I mean more like Ms Word track changes rather
than a history of what has changed.

David

On Jul 16, 12:46 pm, shi...@gmail.com wrote:
> What do mean by track changes? If you want to be able to compare
> differences in versions that's different from seeing changes when
> editing the html.
>
> Blair
>

shi...@gmail.com

unread,
Jul 16, 2008, 12:51:56 AM7/16/08
to farcr...@googlegroups.com
That's tricky, because Word does it by embedding the changes in the
document. For HTML content that would be a huge mess. Not sure it can
be done in the context of a CMS.

Blair

On 7/16/08, Hoolahawk <hool...@gmail.com> wrote:
>

Hoolahawk

unread,
Jul 16, 2008, 2:08:27 AM7/16/08
to farcry-dev
What about about comparing differences, is there any thing can work on
with Farcry?

Cheers

David

On Jul 16, 2:51 pm, shi...@gmail.com wrote:
> That's tricky, because Word does it by embedding the changes in the
> document. For HTML content that would be a huge mess. Not sure it can
> be done in the context of a CMS.
>
> Blair
>

shi...@gmail.com

unread,
Jul 16, 2008, 2:43:00 AM7/16/08
to farcr...@googlegroups.com
I been looking at a simple diff feature for versioned objects, but
it's not a high priority. Basically the idea is:
- Possibly adding a diff function to formtool objects
- Adding a diff function to the content type that compares the latest
and a previous version
- Overriding the object overview to incorporate the result of that diff

Any diff algorithm that works on HTML can be incorporated into FarCry.
How you do it just depends on what you need from the UI. For example
you could just tack the diff output under the TinyMCE widget if that
suited your users.

Blair

On 7/16/08, Hoolahawk <hool...@gmail.com> wrote:
>

Jeff Coughlin

unread,
Jul 16, 2008, 8:53:51 AM7/16/08
to farcr...@googlegroups.com
Oops.  Hit send too early :)

The link is http://code.google.com/p/cfdiff/

--
Jeff Coughlin

On Wed, Jul 16, 2008 at 8:46 AM, Jeff Coughlin <je...@jeffcoughlin.com> wrote:
Any diff algorithm that works on HTML can be incorporated into FarCry.
How you do it just depends on what you need from the UI. For example
you could just tack the diff output under the TinyMCE widget if that
suited your users.


Take a look at cfdiff (or diff.cfc) by Rick Osbourne.  It does a diff comparison on 2 ascii data objects (example: comparing 2 

--
Jeff Coughlin
Web Application Developer

Hoolahawk

unread,
Jul 23, 2008, 1:52:52 AM7/23/08
to farcry-dev
Hi All,

Thanks Jeff for you link.

I have managed to get a compare draft/approve version on the boil
using cfdiff and I am happy to share it if people would find it
helpful.

I am having a problem though and was hoping that I could get some help
with from CF developers. I have grabbed the body of a dmHTML page and
compared it using cfdiff, but the cfdiff is not splitting the page
into lines but displaying the whole body in one line. Obviously I want
to have each line in the body as a new line so that it can compare the
difference.

What I am looking to do (I gather) is to replace a <p> with a new
line, but I am not sure how to do this. I thought maybe something with
regular expressions?

Any help would be great and I would appreciate it.

Cheers

David



On Jul 16, 10:53 pm, "Jeff Coughlin" <j...@jeffcoughlin.com> wrote:
> Oops.  Hit send too early :)
>
> The link ishttp://code.google.com/p/cfdiff/
>
> --
> Jeff Coughlin
>
> On Wed, Jul 16, 2008 at 8:46 AM, Jeff Coughlin <j...@jeffcoughlin.com>

Jeff Coughlin

unread,
Jul 23, 2008, 4:19:03 AM7/23/08
to farcr...@googlegroups.com
> What I am looking to do (I gather) is to replace a <p> with a new
> line, but I am not sure how to do this. I thought maybe something with
> regular expressions?
>
> Any help would be great and I would appreciate it.

Yeah. You'd want to use a regular expression and replace all ending
paragraph tags with chr(10) and/or chr(13). chr(10) is a line feed
(or NL / New Line), and chr(13) is a carriage return. (Basically your
Windows and *nix equivs).

Regards,

Jeff Coughlin

unread,
Jul 23, 2008, 4:51:43 AM7/23/08
to Jeff Coughlin, farcr...@googlegroups.com
Maybe give something like this a shot:

<cfset bodyNew = reReplace(stObj.body, "(\<p.[^\>]+\>)",
"#chr(10)##chr(13)##chr(10)##chr(13)#", "all") />

That should replace all paragraphs with the ascii equivalent (in this
case, I replaced it with 2 carriage returns and line feeds since there
is no actual ascii equivalent to a paragraph. To test, try replacing
the ascii codes with a string so you can visualize the result. The
code should also get self-closing paragraph tags "<p />", however
won't get them if they don't have a space before the forward slash "<p/
>".

Next, I'd suggest replacing single line breaks (<br /> tags) with the
following:
<cfset bodyNew = reReplace(bodyNew, "(\<br[^\>]+\>)",
"#chr(10)##chr(13)#", "all") />

The only downside I can think of is that this won't pick up a tag if
it doesn't close properly (in other words, it's expecting xhtml
eqivalent).

Hope this helps get you in the right direction.

--
Jeff Coughlin
Web Application Developer
http://jeffcoughlin.com

AJ Mercer

unread,
Jul 23, 2008, 7:24:34 AM7/23/08
to farcr...@googlegroups.com
would you want to do the same for other block tags?
eg
H1..H6, DIV
maybe TABLE & TR
--

AJ Mercer
Web Log: http://webonix.net
Reply all
Reply to author
Forward
0 new messages