We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Wysiwyg Editor | Forum

Fred
Fred Dec 27 '15
So, I have the Cool CKeditor working great on everything except one place, the html pop up box for front page, dashboard custom html widgets:


What is wrong with this code? Trivia game maybe??



//Drag and drop:customizing pages popupif (window.OW_Components_DragAndDropAjaxHandler) {OW_Components_DragAndDropAjaxHandler.prototype.original_loadSettings=OW_Components_DragAndDropAjaxHandler.prototype.loadSettings;OW_Components_DragAndDropAjaxHandler.prototype.loadSettings=function(id, successFunction) {this.original_loadSettings(id, function(settingMarkup){successFunction(settingMarkup);COOL_ckeditor_load_after_loadSettings(id); });};function COOL_ckeditor_load_after_loadSettings(id){$('.floatbox_container textarea').each(function(index){var element=$(this);COOL_ckeditor_textarea_attach(this);var editor=this.jhtmlareaObject.editor;//var element_id=id+index;//element.attr('id',element_id);//var editor = CKEDITOR.replace( element_id, CKCONFIG );//editor.on('blur',function(e){ editor.updateElement(); element.val(editor.getData());console.log(element.val())},null,null,1);//$(this).parents('.settings_form').bind('submit',function(){ editor.updateElement(); });
$('.floatbox_container input.dd_save').off('click').on('click',function(){ editor.updateElement();element.parents('.settings_form').submit(); });
//COOL_ckeditor_form_refresh_before_submit(element.parents('form').get(0),editor);});};}

/*

The Forum post is edited by Fred Dec 27 '15