sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 53425 - http://anonsvn.icesoft.org/repo / icefaces4 / trunk / icefaces / ace / component / resources / icefaces.ace / richtextentry / richtextentry.js
Unified Diff View - richtextentry.js
/icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/richtextentry/richtextentry.js @ revision 53424
/icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/richtextentry/richtextentry.js @ revision 53425
@@ -125,6 +125,17 @@         }   editorInstance.initialData = editorInstance.getData();   editorInstance.saveOnSubmit = saveOnSubmit; + +  var onChange = function(e) { +   var instance = CKEDITOR.instances[editor]; +   var textarea = document.getElementById(editor); +   var data = instance.getData(); +   if (saveOnSubmit) { +    textarea.value = data; +   } +  }; +  editorInstance.on('change', onChange); +   var onBlur = function(e) {    var instance = CKEDITOR.instances[editor];    var textarea = document.getElementById(editor);


feed icon

sventon 2.5.1