I embedded Juicebox into a Drupal page without any issues. But, when I go back and edit the page, the following occurs:

  • The edit screen shows up with the body section as plain text.

  • CKEditor kicks in, loads its toolbar, and changes the display to the rendered html

  • Juicebox throws the error Juicebox Error: Cannot find div with id: "juicebox-container" and greys out the screen

  • There's no way to go back to edit the html

I can avoid this issue by setting the editor to a type that doesn't use WYSIWYG, but that causes difficulties if I'm putting anything on the page in addition to the embedded slideshow.
Is there a way to avoid triggering the juicebox.js script too early when using it within a WYSIWYG editor?

Thanks.