Bug reports Found a bug? Post it here please.
Version 7.x > Bug reports > CKEditor scrolls down page on enter keypress View modes: 
User avatar
Member
Member
btagis - 11/14/2013 11:38:08 AM
   
CKEditor scrolls down page on enter keypress
Hi devs,

I'm running into a problem in 2 of my Kentico CMS 7 instances (which may always have been there, I'm not sure); whenever the enter key is pressed inside an editor instance, the page scrolls downward for what looks to be an arbitrary amount.

I'm using aspx + portal engine, 7.0.27.

It seems to be CKEditor related, and might be this:

http://dev.ckeditor.com/ticket/9136

The editor isn't in an absolutely positioned div, but the whole page (i.e. the Kentico CMS Desk) does have...
body {height: 100%}

...set - which is a fail condition. I've removed all of my custom style sheets & the issue persists. It's a bit strange nobody else having mentioned it, though.

Any suggestions?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 11/18/2013 5:19:22 AM
   
RE:CKEditor scrolls down page on enter keypress
Hello,

I would recommend you to take a look at the Ofiicial CKEditor Configuration where you can see how you can easily change the behaviour using the config key. The config file is located in: /CMSAdminControls/CKeditor/config.js

Let me know if that helps you.

Best regards,
Martin Danko

User avatar
Member
Member
brien.wright-hfit - 11/19/2013 5:01:35 PM
   
RE:CKEditor scrolls down page on enter keypress
We are also experiencing this problem with CKEditor in CMS Desk (Kentico v7.0.4919), and I see nothing in the config that would control unwanted page scrolling after hitting the enter key. Was there a solution you had in mind?

We are seeing other annoying bugs with CKEditor that aren't configuration issues. If we report these as bugs to support@kentico.com, will they be addressed? Does Kentico support CKEditor, or will we have to wait until Kentico updates CKEditor to a fixed version?

Btw, what is the version of CKEditor that Kentico currently uses? I didn't find it in searches, and I didn't see a reference to a version number in the CKEditor code.

Thanks.

User avatar
Member
Member
lancetek - 11/29/2013 6:47:16 AM
   
RE:CKEditor scrolls down page on enter keypress
Re: Getting the CKEditor version:

Just put:
console.log(CKEDITOR.version);


Inside your CKE config.js

http://stackoverflow.com/questions/15872900/how-to-check-ck-editor-version


I too am seeing this problem on Chrome and Firefox. It's not occurring in IE 10.


This problem makes editing long text fields extremely tedious.

User avatar
Member
Member
brien.wright-hfit - 11/19/2013 5:12:08 PM
   
RE:CKEditor scrolls down page on enter keypress
Here's a screen shot of a bug we are experiencing that also shows up in the CKEditor sample you linked to. Notice how the content blocks are DIVs instead of Ps. I think this is a confirmed bug for CKEditor in Chrome.

Would Kentico fix this if I were to report it?

Thanks.

User image

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 11/25/2013 11:02:45 AM
   
RE:CKEditor scrolls down page on enter keypress
Hello,

In Kentico we are still using CKEditor 3.6 as we can not simply replace the CKEditor in the hotfix.

As you can see here: Ticket #9136 (closed Bug: fixed) and Ticket #9523 (closed Bug: fixed) this issue seems to be related just to the some versions of Chrome browser.

This is behaviour was also fixed in CK Editor but as I said, we are not able to upgrade CK Editor because of many dependencies in the application.
So the simplest workaround in this case is to use a different browser.
I'm very sorry for this inconvenience.

Best regards,
Martin Danko

User avatar
Member
Member
lancetek - 11/29/2013 7:12:58 AM
   
RE:CKEditor scrolls down page on enter keypress
I'm trying a downgrade to 3.6.2. You can download different versions of CKE here: http://ckeditor.com/download/releases

I just replaced the ckeditor.js from 3.6.2 with the Kentico v7 one, and this problem doesn't seem to occur anymore.

@martin: thanks for this link: http://dev.ckeditor.com/ticket/9523 that was helpful to see.

PS - if someone was curious, they could do a diff between 3.6.3 and 3.6.3 to see what has caused the problem...;P


User avatar
Certified Developer v7
Certified  Developer v7
kcollins - 12/19/2013 9:02:28 AM
   
RE:CKEditor scrolls down page on enter keypress
I can confirm that this bug occurs in Firefox 26.0 as well as Chrome 31. Does this mean clients are required to use Internet Explorer to enter content in Kentico?

Commenting out the height: 100% on the body & html elements on line 13 of DesignMode.css fixes the page scrolling issue with the CKEditor, but breaks Preview Mode (reduces the height of the viewing pane). This suggests the issue could be fixed by modifying Kentico CSS rather than CKEditor.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/20/2013 8:02:50 AM
   
RE:CKEditor scrolls down page on enter keypress
Hello,

Could you please tell me which exact hotfix are you running?

Best regards,
Martin Danko

User avatar
Certified Developer v7
Certified  Developer v7
kcollins - 12/20/2013 8:07:49 AM
   
RE:CKEditor scrolls down page on enter keypress
Hi - I'm running v 7.0.60. This occurs when I remove all my custom css & javascript as well.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/22/2013 3:20:10 AM
   
RE:CKEditor scrolls down page on enter keypress
Hello,

Attached is a config file that may fix this issue - it is modified file from a newer version of the CKEditor. Please, make sure oyu have a backup/copy of this file before rewriting the original with the attached one. Please, copy it to CMSAdminControls/CKEditor/ckeditor.js


Restart of the application and clearing the browser cache may be required.
Note: Rename the attachment to .js (only images are allowed to be uploaded here :-))

Or, you can also download newer version of CKEditor from here:

Content of the package copy to ~/CMSAdminControls/CKeditor folder but only the following items:
- ckeditor.js
- contents.html
- all folders except _samples and _source

Restart of the application may be needed to apply these changes.

Note: Rename the attachment to .js (only images are allowed to be uploaded here :-))

Best regards,
Juraj Ondrus

Post attachments: