﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14679	TypeError: Cannot read property 'setAttribute' of undefined	sweta		"Currently I am using ckeditor version 4.5.7. and in this version I am facing issue with ""Uncaught TypeError: Cannot read property 'setAttribute' of undefined"" for body element.
body.setAttribute(""contentEditable"", false);
Code is as below. Its working fine in firefox. But problem with ie and chrome.

edtr = CKEDITOR.replace(id, {
	on: {
		
		'instanceReady': function(evt) {
			
			insert = CKEDITOR.getTemplates('default');
			
			var editor = evt.editor;
			var body = editor.document.getBody();
			body.setAttribute(""contentEditable"", false);
			
			var disableEvent = function(evt) {
				evt.cancelBubble = true;
				evt.returnValue = false;
				evt.preventDefault();
				evt.stopPropagation();

				return false;
			};

			if (editor.document.$.addEventListener) {
				editor.document.$.addEventListener('dragover', disableEvent, true);
				editor.document.$.addEventListener('drop', disableEvent, true);
			} else if (editor.document.$.attachEvent) {
				editor.document.$.attachEvent('ondragover', disableEvent, true);
				editor.document.$.attachEvent('ondrop', disableEvent, true);
			}
			this.fire('afterSetData', main.pageContainerEmailEditor.emaileditor.afterSetData());

		}
	}
});"	Bug	closed	Normal		File Browser		duplicate		
