Saving via AJAX

NicEdit supports having a save button the toolbar that users can click to save content.

To use this mode you should have some understanding of javascript and follow these steps:



  1. bkLib.onDomLoaded(function(){
  2.   new nicEditor({fullPanel : true, onSave : function(content, id, instance) {
  3.     alert('save button clicked for element '+id+' = '+content);
  4.   } }).panelInstance('myArea2');
  5. });