diff --git a/web/js/admin/launcher.js b/web/js/admin/launcher.js index c55564b..0ff8add 100644 --- a/web/js/admin/launcher.js +++ b/web/js/admin/launcher.js @@ -3,18 +3,18 @@ // on page load $(function() { - - $.dmAdminLaunchCkEditor = function() - { - // starts all players in the page - $('textarea.dm_ckeditor').each(function() - { - var $this = $(this), options = $this.metadata(); + + $.dmAdminLaunchCkEditor = function() + { + // starts all players in the page + $('textarea.dm_ckeditor').each(function() + { + var $this = $(this), options = $this.metadata(); $this.ckeditor(options); - }); - }; - - $.dmAdminLaunchCkEditor(); + }); + }; + + $.dmAdminLaunchCkEditor(); }); })(jQuery); diff --git a/web/js/front/widgetForm.js b/web/js/front/widgetForm.js index 8f6f1a3..3fd00da 100644 --- a/web/js/front/widgetForm.js +++ b/web/js/front/widgetForm.js @@ -1,7 +1,7 @@ $.fn.dmWidgetContentCkEditorForm = function(widget) { - var self = this, $textarea = self.find('textarea.dm_ckeditor'), editor; + var self = this, $textarea = self.find('textarea.dm_ckeditor'); //Kill all existing instances before loading @@ -11,12 +11,7 @@ $.fn.dmWidgetContentCkEditorForm = function(widget) CKEDITOR.remove(CKEDITOR.instances[$textarea.attr('id')]); } - $textarea.ckeditor(function() - { - $.dbg(this); - }, - $textarea.metadata() - ); + $textarea.ckeditor(function(){}, $textarea.metadata()); self.find('input.submit').click(function() {