includes/clientside/static/editor.js
changeset 622 734af34cd7ad
parent 588 20484deb89cd
child 650 e45183014778
equal deleted inserted replaced
621:68f8a9cc0a18 622:734af34cd7ad
   874 
   874 
   875 var editor_loading = false;
   875 var editor_loading = false;
   876 
   876 
   877 window.ajaxSetEditorLoading = function()
   877 window.ajaxSetEditorLoading = function()
   878 {
   878 {
   879   var ed = tinyMCE.get('ajaxEditArea');
   879   var ed = false;
       
   880   if ( window.tinyMCE )
       
   881   {
       
   882     ed = tinyMCE.get('ajaxEditArea');
       
   883   }
   880   editor_loading = true;
   884   editor_loading = true;
   881   if ( ed )
   885   if ( ed )
   882   {
   886   {
   883     ed.setProgressState(1);
   887     ed.setProgressState(1);
   884   }
   888   }
   905 }
   909 }
   906 
   910 
   907 window.ajaxUnSetEditorLoading = function()
   911 window.ajaxUnSetEditorLoading = function()
   908 {
   912 {
   909   editor_loading = false;
   913   editor_loading = false;
   910   var ed = tinyMCE.get('ajaxEditArea');
   914   var ed = false;
       
   915   if ( window.tinyMCE )
       
   916   {
       
   917     ed = tinyMCE.get('ajaxEditArea');
       
   918   }
   911   if ( ed )
   919   if ( ed )
   912   {
   920   {
   913     ed.setProgressState(0);
   921     ed.setProgressState(0);
   914   }
   922   }
   915   else
   923   else