Closed (cannot reproduce)
Project:
Wysiwyg
Version:
7.x-2.2
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2012 at 22:04 UTC
Updated:
27 Oct 2012 at 10:15 UTC
I have a fairly basic form that is being shown in a Ctools modal. It has a "text_format" field to which a Ckeditor is being attached. Upon loading the form everything works fine, but when validation fails the editor disappears (and the textarea has "visibility: hidden"). Firefox reports the following:
Error: uncaught exception: [CKEDITOR.editor] The instance "THE_TEXTAREA_ID" already exists.
Comments
Comment #1
Madis commentedI have little knowledge of Drupal behaviors, the Wysiwyg module and Ckeditor, but with a good amount of googling, checking the module code and trial - error I've managed to put together a workaround which in my current case solves the problem. It's a piece of javascript code I added in my custom module:
Not sure how good or bad this workaround is, but might be of some use in helping to resolve the issue.
Comment #2
Madis commentedWasn't able to reproduce this on a clean install so it's likely a problem with my custom code somewhere.