Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

handling/configuring event when tinymce editor initializes

Initialize the editor the traditional way

   1  
   2  tinyMCE.init({
   3     ...
   4     setup : function(ed) {
   5        ed.onInit.add(window.testfunc);
   6        
   7     }
   8  });
   9  
  10  function testfunc()
  11  {
  12     alert('Editor initialized');
  13  
  14     //set content for editor 
  15     var ed = tinyMCE.get('editor');
  16     ed.setContent(hfContent.value);//setting value from hidden field	
  17  }
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS