diff --git a/javascript/tinymce.template.js b/javascript/tinymce.template.js index 54ae5691..e9ea7f99 100755 --- a/javascript/tinymce.template.js +++ b/javascript/tinymce.template.js @@ -51,6 +51,10 @@ Behaviour.register({ this.isChanged = function() { return tinyMCE.getInstanceById(this.id).isDirty(); } + this.resetChanged = function() { + inst = tinyMCE.getInstanceById(this.id); + inst.startContent = tinymce.trim(inst.getContent({format : 'raw', no_events : 1})); + } } } })