Changeset 32439 for main/trunk/greenstone3/web/interfaces/default
- Timestamp:
- 2018-09-11T13:06:19+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/documentedit_scripts.js
r32132 r32439 152 152 function readyPageForEditing() 153 153 { 154 CKEDITOR.on('instanceReady', function(evt) { 155 addCKEEditableState(evt,editableInitStates); 156 }); 154 155 // CKEDITOR.on('instanceReady', function(evt) { 156 // addCKEEditableState(evt,editableInitStates); 157 // }); 158 157 159 if($("#metadataSetList").length) 158 160 { … … 171 173 $("#editContentButton").html(gs.text.de.hide_editor); 172 174 //wait for 0.5 sec to let ckeditor up 173 //setTimeout(function(){ $(".sectionText").each(function(){addEditableState(this,editableInitStates);}); }, 500);175 setTimeout(function(){ $(".sectionText").each(function(){addEditableState(this,editableInitStates);}); }, 500); 174 176 var editBar = $("#editBarLeft"); 175 177 … … 330 332 **************************************/ 331 333 334 // not using this anymore as the instanceready never seems to get called 332 335 function addCKEEditableState(evt,stateArray) 333 336 { … … 339 342 initHTML : nodeText 340 343 }); 341 342 } 344 } 345 343 346 function addEditableState(editable,stateArray) 344 347 { … … 399 402 if (StateToCheck.initHTML == "") { 400 403 return false; 401 } 404 } 405 402 406 return true; 403 407
Note:
See TracChangeset
for help on using the changeset viewer.