Is it possible to save the Track Changes result without opening the dialog? Or even just a way to open the dialog in the background and close it out once the content is rendered an I have grabed the fieldset for the Track Change Content?
My objective is to present the track changes content outside of the Editor to other users, so they can see what has changed. I currently save both the initial and final versions to my database right now. And I can force the content to automatically set and switch out with the following script. I would just prefer not to have the dialog interfere with the UI when my sole purpose for it's use is just get the content rendered in the track change format, not to inform the users that wrote the content.
My objective is to present the track changes content outside of the Editor to other users, so they can see what has changed. I currently save both the initial and final versions to my database right now. And I can force the content to automatically set and switch out with the following script. I would just prefer not to have the dialog interfere with the UI when my sole purpose for it's use is just get the content rendered in the track change format, not to inform the users that wrote the content.
function EditorCommand(editor, args) { switch (args.get_commandName()) { case "TrackChangesDialog": var loc = "Pub.aspx"; var methodName = "GetLastRevContent" + location.search; var jsondata = new Object(); jsondata.contentId = _$currentEdit.attr("id"); var jsoon = $.toJSON(jsondata); $.ajax({ async: false, type: "POST", url: loc + "/" + methodName, data: jsoon, contentType: "application/json; charset=utf-8", dataType: "json", timeout: _sysEditPubVars.timeoutRate, success: function (response) { var editor = $find('<%= RadEditor1.ClientID %>'); var fromServer = jQuery.parseJSON(response.d); var currentcontent = editor.get_html(true); editor.set_html(fromServer.oldContent); editor.set_initialContent(); editor.set_html(currentcontent); }, }); break; default: break; } }