 CKEDITOR.config.pasteFromWordRemoveFontStyles = true;
  CKEDITOR.config.pasteFromWordRemoveStyles = true;

  var editor = CKEDITOR.replace('textareacontents', {
  });

  $(".cancelbutton").click(function(e){
    e.preventDefault();
    window.location='{% url "dashboard:companies" 'company' %}';
  });

  $('form#companyform').ajaxForm({
    beforeSerialize: function() {
      $("input[name='profile']").val(CKEDITOR.instances.textareacontents.getData());
    },
    dataType: 'json',
    success: function(da