jquery ckeditor whizz needed
Age old problem we are loading CKEDITOR in jquery ui dialogs for adding and editing. It will load properly one or the other but if you load one you can't load the other properly afterwards. We have tried destroying (breaks completely second time) and removing (brings up editor but no white editing area) For someone who is knowledgable inthe specific area it will be a quick easy task. the dialog and editor init :- function tf_modal(dialog_id, content, textareas, callback, title) { var config = { toolbar: [ ['Bold', 'Italic', 'Underline', '-', 'NumberedList', 'BulletedList', '-', 'Undo', 'Redo', '-', 'SelectAll'], ['UIColor'] ] }; $('#'+dialog_id).remove(); $('body').append(' '); $('#'+dialog_id).dialog({ autoOpen: false, bgiframe: true, resizable: false, width: 845, position: ['center','top'], overlay: { backgroundColor: '#000', opacity: 0.5 }, open: function(e, ui){ if (CKEDITOR.instances['description']) { CKEDITOR.remove(CKEDITOR.instances['description']); } if (CKEDITOR.instances['textarea#description']) { CKEDITOR.remove(CKEDITOR.instances['textarea#description']); } $('textarea#description').ckeditor(config); }, beforeclose: function(event, ui) { if (CKEDITOR.instances['description']) { CKEDITOR.remove(CKEDITOR.instances['description']); } if (CKEDITOR.instances['textarea#description']) { CKEDITOR.remove(CKEDITOR.instances['textarea#description']); } } }); if(typeof(title) == "undefined") title = "Edit"; $('#'+dialog_id).dialog('option', 'title', title); $('#'+dialog_id).dialog('option', 'modal', true); $('#'+dialog_id).dialog('option', 'buttons', { 'Cancel': function() { if (CKEDITOR.instances['textarea#description']) { CKEDITOR.remove(CKEDITOR.instances['textarea#description']); } if (CKEDITOR.instances['description']) { CKEDITOR.remove(CKEDITOR.instances['description']); } //$(this).dialog('close'); $(this).dialog('destroy'); }, 'OK': callback }); $('#'+dialog_id).html(content); $('#'+dialog_id).dialog('open'); return false; } and the textareas are all defined as :- Keywords: Prototype, Website, PHP, HTML, jQuery, Design
| Expired |
More html projects
View AllMore jquery / prototype projects
View AllRelated projects
Search for freelance jobs
"I did not know what to expect at first. But my final impression once I used your site and service is a great one! Simply amazing!
I would recommend this service to any other freelance artists and co workers who are looking to expand their client base."
"The possibility to include all information about my freelance working places in just one website. It means, I don't need to tell my future employer to go to odesk, elance, etc. They can check everything about me in donanza website."




