You need to sign in to do that
Don't have an account?
Žiga Makuc
CKEditor refreshing page after Winter '15 release
Does anyone have similar problem? I have CKEditor enabled for my custom rich text area fields on a custom object. The CKEditor included in Salesforce does not work anymore. It refreshes page repeatedly and you can't edit anything.
My solution was to download CKEditor and put it as Static Resource but I had to find the appropriate version (tried 15 so far)...and only one seem to be working with current data - so that it doesn't change it. But I'm still working on it, and haven't found the best solution so far. Any suggestions? Raising a case on Salesforce didn't help me, they told me it should work.
My solution was to download CKEditor and put it as Static Resource but I had to find the appropriate version (tried 15 so far)...and only one seem to be working with current data - so that it doesn't change it. But I'm still working on it, and haven't found the best solution so far. Any suggestions? Raising a case on Salesforce didn't help me, they told me it should work.
Instead of line which is in the newer version never true, and thus always refreshes page (destroys it in next step), you can put global variables and then instead of previously mentioned line put this:
This solves refreshing, but Salesforce also upgraded CKEditor which deletes styles in your html. Probably if you use everything with classes instead of styles this works well.
All Answers
Instead of line which is in the newer version never true, and thus always refreshes page (destroys it in next step), you can put global variables and then instead of previously mentioned line put this:
This solves refreshing, but Salesforce also upgraded CKEditor which deletes styles in your html. Probably if you use everything with classes instead of styles this works well.
That didn't work either. I was reading CKEditor documentation and it says the default version of the toolbar is the full toolbar of course. Spell check options should appear on the Editing toolbar (after Find, replace, and select all). I have those 3 options but nothing else.
This is the whole reason I overrode standard functionality in Quoting - so I could have spell check in my Scope of Work box.
<script>
var loaded = false;
$(document).ready(function(){
CKEDITOR.on('instanceReady', function(e) {
//if (e.editor.config.magic) return;
if (loaded){
return true;
}
var target = e.editor.config.bodyId;
var name = e.editor.name;
e.editor.destroy();
CKEDITOR.editorConfig = function( config ) { config.magic = true; }
CKEDITOR.replace(name, {
height : 600,
bodyId : target
});
loaded = true;
});
});
</script>