Answers.Body: <p>I don't know if it is just a coincidence, but after I upgraded the version of php my site uses from 7.3.33 to 7.4.27 I am again able to add images to a draft email.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-26T13:13:14.600Z
Answers.LastActivityDate: 2021-12-26T13:13:14.600Z
Answers.UserDisplayName: Ben Bachrach
Answers.Body: <p>A nice workaround for this is to install the CKEditor5 Extension (<a href="https://lab.civicrm.org/extensions/ckeditor5" rel="nofollow noreferrer">https://lab.civicrm.org/extensions/ckeditor5</a>) and follow its setup instructions. Most of the Drupal 9 installs I use, have this problem and it is solved with this.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-08T14:29:24.660Z
Answers.LastActivityDate: 2022-02-08T14:29:24.660Z
Answers.UserDisplayName: Erik Brouwer
Body: <p>Using CiviCRM 5.36.1 - trying to create email to send using civimail.
  at:
  .../wp-admin/admin.php?page=CiviCRM&amp;q=civicrm%2Fa%2F#/mailing/336</p>
  <p>Previously had no trouble adding an image by clicking on the add image icon.
  Now get error when trying to either upload a new image, or linking to an existing image.</p>
  <p>Get &quot;incorrect server response&quot; as shown below.</p>
  <p>The web console shows:
  [CKEDITOR] Error code: filetools-response-error.
  Object { responseText: &quot;<br />\n<b>Deprecated</b>: The each() function is deprecated.</p>
  <p>I removed old images from
  /public_html/wp/wp-content/uploads/civicrm/persist/contribute/images
  and still get same error.</p>
  <p>Any suggestions?</p>
  <p><a href="https://i.sstatic.net/Fp7tM.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Fp7tM.png" alt="enter image description here" /></a></p>
  
Tags: <civimail><ckeditor>
Title: Trying to add image to email get ckeditor error
ThreadText: # Trying to add image to email get ckeditor error
  
  (Asked by: username_0 on 2021-12-25)
  
  Using CiviCRM 5.36.1 - trying to create email to send using civimail.
  at:
  .../wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fa%2F#/mailing/336
  
  Previously had no trouble adding an image by clicking on the add image icon.
  Now get error when trying to either upload a new image, or linking to an existing image.
  
  Get "incorrect server response" as shown below.
  
  The web console shows:
  [CKEDITOR] Error code: filetools-response-error.
  Object { responseText: "  
  \n**Deprecated**: The each() function is deprecated.
  
  I removed old images from
  /public\_html/wp/wp-content/uploads/civicrm/persist/contribute/images
  and still get same error.
  
  Any suggestions?
  
  [![enter image description here](https://i.sstatic.net/Fp7tM.png)](https://i.sstatic.net/Fp7tM.png)
  
  **Tags:** civimail, ckeditor
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2021-12-26. Score: 2
  
  I don't know if it is just a coincidence, but after I upgraded the version of php my site uses from 7.3.33 to 7.4.27 I am again able to add images to a draft email.
  
  
  ---
  
  ### Answer by username_1 on 2022-02-08. Score: 1
  
  A nice workaround for this is to install the CKEditor5 Extension (<https://lab.civicrm.org/extensions/ckeditor5>) and follow its setup instructions. Most of the Drupal 9 installs I use, have this problem and it is solved with this.
  
  
  ---
  
  