-- 2009-08-05 version 6.x-1.x-dev
* #448242 Textarea is not valid
* #293976 Add parameters to clear static variables in functions
+* #409054 Pop-up window not showing teaser
-- 2009-08-02 version 6.x-1.x-dev
* #380146 Image Assist still not working
if (!$processed) {
drupal_add_js($module_drupal_path .'/fckeditor.popup.js');
}
- $element['#suffix'] .= " <span class=\"fckeditor_popuplink\">(<a href=\"#\" onclick=\"FCKeditor_OpenPopup('". $module_full_path ."/fckeditor.popup.html?var=". $js_id ."&el=". $element['#id'] ."');return false;\">". t('Open rich editor') ."</a>)</span>";
+
+ if ($element['#id'] == 'edit-body') {
+ $teasersuffix = '&teaser=edit-teaser-js';
+ } else {
+ $teasersuffix = '';
+ }
+
+ $element['#suffix'] .= '<span class="fckeditor_popuplink">(<a href="#" onclick="FCKeditor_OpenPopup(\''. $module_full_path .'/fckeditor.popup.html?var='. $js_id .'&el='. $element['#id'] . $teasersuffix .'\');return false;">'. t('Open rich editor') .'</a>)</span>';
}
else {
// if no popup mode, add the editor initialization to the footer
oFCKeditor.Width = '100%' ;
oFCKeditor.Height = '100%' ;
-if (FCKURLParams[ 'teaser' ]) {
- var text = window.opener.document.getElementById( FCKURLParams[ 'teaser' ] ).value ;
+var teaserfield;
+
+if (FCKURLParams[ 'teaser' ] && (teaserfield = window.opener.document.getElementById( FCKURLParams[ 'teaser' ] ))) {
+ var text = teaserfield.value ;
if (text.length > 0) {
text = text + '\n<!--break-->\n';
}