When adding custom content into a panel via the Panels module, CKEditor fails to load. See the attached screenshot. The path to the language file is

/node/3/lang/da.js?t=C6HH5UF

, which suggests that the CKEDITOR_BASEPATH variable is not set.

Steps to reproduce:

  • On a clean installation, install Panels and Wysiwyg with CKEditor in /sites/all/libraries/ckeditor
  • Add a HTML text format and make CKEditor be used by that format.
  • Create a node of type Panel and click add custom content.

A temporary workaround is to add the following line in the top of ckeditor.js:

window.CKEDITOR_BASEPATH = '/sites/all/libraries/ckeditor/';

CommentFileSizeAuthor
wysiwyg-panels-ckeditor-bug.png102.58 KBmntnoe

Comments

twod’s picture

Status: Active » Closed (duplicate)

This will be fixed as part of #356480: Lazy-load editors as more than the basepath needs to change to make most editors happy when loading them after the document is done loading. Please try the latest patch from that issue.