When previewing before submitting, two TinyMCE controls appear for editing (see attached pic). Only the top TinyMCE control commits changes to the document on submit. This happens with both the default "page" and "story" content types. Running Drupal 6.2. Input type is Full HTML. Using default TinyMCE CSS. The only contrib module used is External Links (6.x-1.6). Using the "Pluralism" theme.
| Comment | File | Size | Author |
|---|---|---|---|
| tinymce_preview.jpg | 54.38 KB | nirad |
Comments
Comment #1
elkanaut commentedSame problem here.
I can add, that this happens in any Drupal 6.x version and not depending on theme or external modules. But it's only for TinyMCE 2.x version, as for the 3rd version of TinyMCE there is no such a problem.
Comment #2
nirad commentedI changed to to TinyMCE version 3.1.0. Now only one TinyMCE control appears in the preview pane, but it doesn't work- any changes made during preview will not be submitted.
Comment #3
jo1ene commentedI have this issue as well with the 2.x version of TinyMCE on Drupal 6. Unfortunately, img_assist is not yet working with the 3.x version of TinyMCE so I can't simply upgrade to avoid the issue at this time.
Comment #4
gargsuchi commentedSame issue here, and reason for not able to upgrade is the same as that of jo1ene. Someone, please help.
Comment #5
drupaloSa commentedsubscribing
Comment #6
dylanb commentedI've noticed this same problem with a module I'm developing. It's a competition module whereby the admin can create a competition with an indefinite number of questions (held in a separate table). When you edit the form you can add a question which updates the page and inserts a set of blank fields into the form array, essentially the equivalent of the "preview" behaviour as described in the original post (above). To put it another way, I submit the form and validate it but bypass the submission process before the form is re-rendered with the updated $form array.
This results in the twin windows phenomenon. Interestingly enough, if I disable rich text on both windows and then re-enable it I get the normal number of windows.
Also, this behaviour does not occur when I try previewing a standard "story" content type. On a normal page the id of the span tag surrounding the RTE is "mce_editor_0_parent" whereas on the bogus version the false (top) one is "mce_editor_1_parent" and the real one (the one left behind after disabling and re-enabling rich text) is "mce_editor_0_parent". Furthermore I've installed jquery_update and also applied a patch to tinymce to avoid the white screen of death (http://drupal.org/node/235972).
I don't know if that would help anyone but it doesn't hurt to provide info.
BTW, I'm using drupal 5.10 so apologies for polluting the thread with potential irrelevancies but I couldn't find a similar thread for 5.x
Comment #7
mupsi