Hi jeff330ci,
You can achieve your requirement by the code below. Value GetContentVersion will be changed when fire the new IsDirty. If is the same IsDirty, then do not need to save the content.
- <script type="text/javascript">
- var savedver=0;
- function save()
- {
- var editor1 = document.getElementById('<%= Editor1.ClientID%>').editor;
- var newdver = editor1.GetContentVersion();
- if (editor1.IsDirty())
- {
- if (newdver == savedver) {
-
- alert("no change, so do not save content");
- }
- else {
-
- alert("save content");
- savedver = editor1.GetContentVersion();
- }
- }
- }
- </script>
Regards,
Ken