http://munnlodge.org/cms/FCK_ShadowBox
In Drupal6 with both the shadowbox module and the fckedit module, there was still no clean way of getting a layman to invoke a ShadowBox link. Even I (a long-haired overfaired leaping gnome) was sick of editing the source code to add rel="ShadowBox" to the anchor tag manually. It only took a few minutes, but that was a few minutes too many. I figured it kinda' defeats the purpose of having a modular CMS with a WYSIWIG editor... I mean: if some things could "play nicely" together, this could really enhance the user's experience - especially when that user was me!
- /modules/fckeditor/fckeditor/editor/dialog/fck_link/fck_link.js
/modules/fckeditor/fckeditor/editor/dialog/fck_link/fck_link.html
<td id="tdShadowBox" style="DISPLAY: none" nowrap="nowrap" width="100%"> <span fckLang="DlgShadowBox"> Rel:</span><br /> <input id="txtShadowBox" readonly="true" style="WIDTH: 100%" type="text" /> </td>
oRegex.sbMatch = /ShadowBox/gi;
// (MOD:08-0709JN - LOGIC Wizards ShadowBox Enhancement)
var sbWiz = oLink.getAttribute( 'rel' ) ;
if ( sbWiz ) // check for existing shadowbox link & initialize the FCK form if applicable.
{
// window.alert ( sbWiz + ' : ' + oRegex.sbMatch.test( sbWiz ) ) // Verbose Mode - Quick Debugger
ShadowBoxWizard(); //
}function ShadowBoxWizard ()
{
GetE('cmbTarget').value = 'ShadowBox' ; // update combo box
GetE('txtShadowBox').value = 'ShadowBox'; // update hidden form field
GetE('tdShadowBox').style.display = '' ; // show form & data
SetAttribute( oLink, 'rel' , 'ShadowBox' ) ; // add the SB trigger
}function SetTarget( targetType )
{
GetE('tdTargetFrame').style.display = ( targetType == 'popup' ? 'none' : '' ) ;
GetE('tdPopupName').style.display = GetE('tablePopupFeatures').style.display = ( targetType == 'popup' ? '' : 'none' ) ;
// (BEGIN MOD:08-0709JN - LOGIC Wizards ShadowBox Enhancement)
GetE('tdShadowBox').style.display = ( targetType == 'popup' ? '' : 'none' ) ;
switch ( targetType ) { case "ShadowBox": // Essentially these line are the guts of this function's MOD; ShadowBoxWizard(); // everything else is for aesthetics & elegance.
break; // Aint it purdiful?
case "_blank" : GetE('txtShadowBox').value = '';
break;
case "_self" : GetE('txtShadowBox').value = '';
break;
case "_parent" : GetE('txtShadowBox').value = '';
break;
case "_top" : GetE('txtShadowBox').value = '';
GetE('txtTargetFrame').value = targetType ;
break ; case "" :
GetE('txtShadowBox').value = '';
GetE('txtTargetFrame').value = '' ;
break ;
}
// (END MOD:08-0709JN - LOGIC Wizards ShadowBox Enhancement) if ( targetType == 'popup' ) dialog.SetAutoSize( true ) ;}
Re: FCK ShadowBox Wizard
the internal file structure seems totally different