コード例 #1
0
    $js_files[] = $cfg['rootdir'] . 'lib/includes/js/edit_area/edit_area_ccms.js';
} else {
    $js_files[] = $cfg['rootdir'] . 'lib/includes/js/edit_area/edit_area_ccms.js';
}
/*
be aware that the edit_area code assumes a 'onLoad' event will be triggered AFTER it is
loaded, which is ONLY PROBABLY TRUE when the edit_area code is loaded by <script> tags
in the page header or HTML itself and NOT TRUE when edit_Area itself is loaded through
a lazyloader, like we do.

Hence, we need to execute the edit_area onLoad event code manually at a time when we
can be certain the edit_area code is really loaded.
That's what the 'loaded' check and call in the code below is for.
*/
$eaLanguage = $cfg['editarea_language'];
$EAsyntax = cvt_extension2EAsyntax($dir_temp . $get_temp);
$driver_code = <<<EOT42

\t\tif (editAreaLoader.win != "loaded")
\t\t{
\t\t\teditAreaLoader.window_loaded();
\t\t}

\t\t/*
\t\tresize event has the problem that it is triggered continually when in IE (and tests reveal it's similar in FF3)
\t\tand we do NOT want to spend CPU cycles on repeated updates of the MUI window sizes all the time, so we follow the
\t\tadvice found here:

\t\thttp://mbccs.blogspot.com/2007/11/fixing-window-resize-event-in-ie.html
\t\thttp://mootools-users.660466.n2.nabble.com/Moo-Detecting-window-resize-td3713058.html
\t\t*/
コード例 #2
0
                $js_files[] = $cfg['rootdir'] . 'lib/includes/js/edit_area/edit_area_ccms.js';
            } else {
                $js_files[] = $cfg['rootdir'] . 'lib/includes/js/edit_area/edit_area_ccms.js';
            }
            /*
            be aware that the edit_area code assumes a 'onLoad' event will be triggered AFTER it is
            loaded, which is ONLY PROBABLY TRUE when the edit_area code is loaded by <script> tags
            in the page header or HTML itself and NOT TRUE when edit_Area itself is loaded through
            a lazyloader, like we do.
            
            Hence, we need to execute the edit_area onLoad event code manually at a time when we
            can be certain the edit_area code is really loaded.
            That's what the 'loaded' check and call in the code below is for.
            */
            $eaLanguage = $cfg['editarea_language'];
            $EAsyntax = cvt_extension2EAsyntax($filename);
            $driver_code = <<<EOT42

\tif (editAreaLoader.win != "loaded")
\t{
\t\teditAreaLoader.window_loaded();
\t}

\t/*
\tresize event has the problem that it is triggered continually when in IE (and tests reveal it's similar in FF3)
\tand we do NOT want to spend CPU cycles on repeated updates of the MUI window sizes all the time, so we follow the
\tadvice found here:

\thttp://mbccs.blogspot.com/2007/11/fixing-window-resize-event-in-ie.html
\thttp://mootools-users.660466.n2.nabble.com/Moo-Detecting-window-resize-td3713058.html
\t*/