When I combine JavaScript-files, then i get the issue "TypeError: Cannot set property 'dir' of undefined". There are no error to the frontend itself. But when trying to edit content in the administration, which contain a CKEditor, then the error occurs and you are not able to see the editor or change the content. See the attached screenshot.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dscoop created an issue. See original summary.

toomanypets’s picture

FileSize
19.54 KB

I have the same problem, with the same js error. Only occurs when "Enable preprocess on all JS" is enabled. See attached screenshot of node/add/page.

NickDickinsonWilde’s picture

NickDickinsonWilde’s picture

Title: TypeError: Cannot set property 'dir' of undefined » CKEditor has errors when JS is aggregated
Status: Active » Fixed

Thanks for the report.

  • NickWilde committed 926d0e0 on 8.x-2.x
    Issue #2761233 by NickWilde, dscoop, toomanypets: CKEditor has errors...
bloomt’s picture

Patch from comment #3 worked for me

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

KlemenDEV’s picture

I am experiencing the same problem

ushma’s picture

Hi KlementDEV
were you able to resolve the issue ?