I've tried almost every implementation, version number, etc. and anytime I hit the upload tab on the image button the page scrolls to the bottom, which is unacceptable. I simply don't know how to make it not do that.
Thu, 12/20/2012 - 23:35
#1

I'm experiencing the same
I'm experiencing the same problem on my ckeditor 4.1 customized version.
I cannot reproduce it with the standard downloadable version and I don't get why it is happening
In my case it happens only in chrome and with dialog window I have modified (link and image)
I debugged and it seems to happen when the setStyle function is called. with params "visibility" and ""
this.$.style[CKEDITOR.tools.cssStyleToDomStyle("visibility")]= "";if you are able to reproduce it please create a ticket in http://dev.ckeditor.com/ or tell me how to reproduce it and I will create the ticket.
these are my customization:
CKEDITOR.on('dialogDefinition', function (ev) { var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if (dialogName == 'image') { ev.data.definition.dialog.on('load', function() { var urlElement = this.getContentElement('info', 'txtUrl'); urlElement.on('change', function() { var size = CKEDITORCUSTOM.checkUrlIsUploaded(ev.editor, this,''); if (size === '') { ev.data.definition.dialog.getContentElement('info', 'imageSize').disable(); } else { ev.data.definition.dialog.getContentElement('info', 'imageSize').enable(); } }); }); dialogDefinition.minHeight = 250; dialogDefinition.minWidth = 420; dialogDefinition.removeContents('advanced'); dialogDefinition.removeContents('Link'); var imageInfoTab = dialogDefinition.getContents('info'); imageInfoTab.remove('txtHSpace'); imageInfoTab.remove('txtVSpace'); //imageInfoTab.remove('htmlPreview'); bug: http://dev.ckeditor.com/ticket/9834 //imageInfoTab.get('htmlPreview').align = 'left'; imageInfoTab.remove('cmbAlign'); imageInfoTab.remove('txtHeight'); imageInfoTab.remove('txtWidth'); imageInfoTab.remove('txtBorder'); imageInfoTab.remove('ratioLock'); imageInfoTab.get('basic').children.splice(0, 0, { type: 'select', id: 'imageSize', label: 'Select image size', items: ev.editor.config.Placeholder.ImageTemplate.imageSize, 'default': ev.editor.config.Placeholder.ImageTemplate.defaultT, onChange: function (event) { var diag = this.getDialog(); var urlElement = diag.getContentElement('info', 'txtUrl'); var size = CKEDITORCUSTOM.checkUrlIsUploaded(ev.editor, urlElement,this.getValue()); if (size === '') { this.setValue(this.default,true); event.cancel = true; } } }); //dialogDefinition.getContentElement('info', 'imageSize').disable(); var uploadTab = dialogDefinition.getContents('Upload'); var uploadButton = uploadTab.get('uploadButton'); uploadButton['filebrowser']['onSelect'] = function(fileUrl, errorMessage) { if (errorMessage==='') { ev.data.definition.dialog.getContentElement('info', 'imageSize').enable(); } }; } if (dialogName == 'link') { dialogDefinition.removeContents('advanced'); dialogDefinition.removeContents('target'); //var linkInfoTab = dialogDefinition.getContents('info'); } });any solution?
any solution?