I have just installed the latest version of CKEditor and have made the the config.js changes as below. But, when entering text, all text after a period is excluded from entry into my database. Any advice on what Im doing wrong. If I leave the config.js empty then all works fine.
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.toolbar = [
{ name: 'styles', items: [ 'Format','Font','FontSize', 'TextColor' ,'BGColor' ]},
{ name: 'basicstyles', items: ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript']},
'/',
{ name: 'insert', items: [ 'Link', 'Unlink', 'Image', 'Smiley' ]}
];
config.blockedKeystrokes =
[
// This is actually the default value.
CKEDITOR.CTRL + 66 /*B*/,
CKEDITOR.CTRL + 73 /*I*/,
CKEDITOR.CTRL + 85 /*U*/,
// Cut, Copy & Paste
CKEDITOR.CTRL + 88 /*X*/,
CKEDITOR.CTRL + 67 /*C*/,
CKEDITOR.CTRL + 86 /*V*/,
CKEDITOR.SHIFT + 45
];
};
I took the edits out of
I took the edits out of config.js and it till seems to have the same problem. All text after a period is removed from the post.
Does anyone have any thoughts?
Normally when text is
Normally when text is submitted it's out of CKEditor's hands, so it's must be something server-side. Can you provide a sample of the code before and after it's submitted to the server? First time we hear of such a case.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
@sebstefanov is right. Please
@sebstefanov is right. Please attach text that you have in editor before pressing submit button. Please also describe exact TC steps to get this problem.
One more additional check you might want to do. You should have CKEditor/samples/ajax.html sample in your editor instance (if you haven't removed samples folder). Please run this sample in browser, create editor, insert your text, then destroy editor and create it once more. I problem occurs there then this might be editor fault. If not then this might be server-side issue - perhaps some filter that for some reason cuts out part of text.
It would be also good to check (e.g. with Fiddler2) what gets send to server in request.
Hi Everyone
Hi Everyone
Here are some addtionial details to support the problem fault finding.
Im viewing the ditor using Firefox v22
The text I typing is:
Hello Dave. Welcome to the website. Please feel free to add more video.
The text that gets captured is:
Hellow Dave.
Previously I have been using FCKEditor. Here is the code for my original FCKEditor installation:
And here is the code modified for the new CKEitor:
I hope this helps.
I tried a little experiment.
I tried a little experiment.
I took this code:
and commented out $ckeditor replace like this:
This gave me a simple plain text area. I tried the same text string entry and it worked perfectly. So something in ckeditor seems to be causing the text to break after a period.
I have narrowed down the code
I have narrowed down the code that seems to be causing my problems and enclose it below:
CKEditor doesn't remove chars
CKEditor doesn't remove chars after '.' character.
Could you perhaps debug your whole request? You could use Fiddler2 to make sure if line after '.' reaches server.
Next you could use IDE like Eclipse (it has PHP module) to debug server-side code you have created. At first glance I thought that your regex is causing this but it doesn't match your sample text at all. Have you got perhaps any other regexp that might be causing this?
NOTE: I have noticed that after "Hello Dave." there are two spaces - perhaps this is regexp issue after all and one of your filters has problems with it.
Seeing this as well after the update
Not sure if anyone is still reading this but I have seen this as well after updating to the most recent CKEditor. Very problematic.