As the title says, I have configured the FCK editor to require clicking of "(Open rich editor)": however when the edit window is already split with a teaser, then the new editor window only ever shows the part after the teaser (i.e. the body).

FYI, the HTML invocation is:

<span class="fckeditor_popuplink">(<a href="#" onclick="FCKeditor_OpenPopup('/sites/all/modules/fckeditor/fckeditor.popup.html?var=oFCK_1&el=edit-body');return false;">Open rich editor</a>)</span>

The Javascript in fckeditor.popup.html line 28 tests for the existence of a parameter 'teaser' but there is no such parameter: this I guess is OK since there is no teaser edit field as such in the original frame since it uses a javascript sliding window for the text field which contains both teaser and body. This is implemented in /misc/teaser.js and /misc/textarea.js I believe.

If I click the "Join summary" button to delete the break then it subsequently edits fine of course.

Any ideas what's going on?

Files: 
CommentFileSizeAuthor
#1 fckeditor-teaser-6.x-1.3-rc7.patch1.93 KBLiberation

Comments

StatusFileSize
new1.93 KB

As a quick hack, I've copied the code around line 1200 in fckeditor.module which handles the non-popup case and added it to the popup case passing in an additional parameter "teaser=edit-teaser-js". This now seems to work fine, and the javascript in fckeditor.popup.html handles the case of a non-existent teaser without problems also. I attach a patch for information, but am not proposing it as the definitive solution as there probably is some other explanation.

Version:6.x-1.3-rc7» 6.x-1.x-dev

Looks like a bug. I'm scheduling it to the next 1.x release.

Assigned:Unassigned» Jorrit
Status:Active» Fixed

Fixed in 6.x-1.x, the problem does not exist in 6.x-2.x.

Status:Fixed» Closed (fixed)

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