Useful Examples

	$('.ckeditor').each(function(index){
		var $this = $(this);
		var id = $this.attr('id');

		CKEDITOR.replace( id, {
			toolbarGroups: [
				{ name: 'links' }
			], 
			height: '60px'
		});

		CKEDITOR.instances[id].on('blur', function(e){
			var value = this.getData();
			if(value != null && value.length > 0){
				update_photo_note($this.attr('data'), this.getData());
			}
		});
	});

http://docs.ckeditor.com/#!/api/CKEDITOR.editor