Update of /cvsroot/exponent/exponent/external/editors
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13883/external/editors
Added Files:
FCKeditor.glue FCKeditor_toolbox.js TinyMCE.glue
TinyMCE_toolbox.js Xinha.glue Xinha_toolbox.js
fcktoolbarconfig.js.php
Log Message:
i hate cvs ! placing missing files under source control
--- NEW FILE: TinyMCE.glue ---
<?PHP
##################################################
#
# Copyright (c) 2005-2006 Maxim Mueller
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
#This glue file is included by subsystems/forms/controls/htmleditorcontrol.php
#it provides the code for the htmleditorcontrol class' controltoHTML() method
# it's based on James Hunt's code for that original class
ob_start();
if (!defined("CTL_HTMLAREAINIT")) {
?>
<script type="text/javascript" src="<?PHP echo PATH_RELATIVE . 'external/editors/' . SITE_WYSIWYG_EDITOR; ?>/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="<?php echo PATH_RELATIVE . 'external/editors/' . SITE_WYSIWYG_EDITOR; ?>_toolbox.js"></script>
<!-- load languagefile, prepare for HTMLArea popup(Link + Image Browsers) -->
<script type="text/javascript">
/* <![CDATA[ */
<?php
global $db;
$config = $db->selectObject("toolbar_TinyMCE", "active=1");
if ($config) {
echo " Exponent.WYSIWYG_toolbar = " . $config->data . ";\n";
}
?>
// new namespace for our config
myConfig = new Object();
// if plugins are needed, set them up
myConfig.setupPlugins = function (myToolbar) {
plugins = new Array();
for(currRow = 0; currRow < myToolbar.length; currRow++) {
for(currButton = 0; currButton < myToolbar[currRow].length; currButton++) {
currItem = myToolbar[currRow][currButton];
// plugin required ?
if(Exponent.WYSIWYG_toolboxbuttons[currItem][2] != "") {
plugins.push(Exponent.WYSIWYG_toolboxbuttons[currItem][2]);
}
}
}
//serialize
if(plugins.length != 0) {
var myStr = '';
for(currPlugin = 0; currPlugin < plugins.length; currPlugin++) {
myStr += plugins[currPlugin];
if (currPlugin != plugins.length-1) {
myStr+= ', ';
}
}
this.config["plugins"] = String(myStr);
}
}
// convert from JS Array into Toolbar init syntax
myConfig.setupToolbar = function (myToolbar) {
for(currRow = 0; currRow < myToolbar.length; currRow++) {
this.config['theme_advanced_buttons' + String(currRow + 1)] = String(myToolbar[currRow]);
}
// the advanced theme always provides at least three rows, clear the ones that are not set by us
if(myToolbar.length < 3) {
this.config['theme_advanced_buttons3'] = "";
if(myToolbar.length < 2) {
this.config['theme_advanced_buttons2'] = "";
//the case of myToolbar.length < 1 REALLY should not happen
}
}
}
//we need this to get the data from the popup(object for "opener" interaction)
var Dialog = new Object();
//callback from the HTMLArea popup(__dlg_close())
Dialog._return = function (val) {
if (val) {
if (val['f_dialogType'] == "Link") {
tinyMCE.execCommand('mceInsertContent',false,'<a href="' + val['f_href'] + '" target="' + val['f_target'] + '" title="' + val['f_title'] + '">' + tinyMCE.getInstanceById('<?php echo $name; ?>').selection.getSelectedHTML() + '</a>');
}
if (val['f_dialogType'] == "Image") {
// TODO: generate CSS styled images
// if ((val['f_align'] == 'right') or (val['f_align'] == 'right')) {
// csscode = "float: " + val['f_align'];
// } else {
// csscode = "vertical-align: " + val['f_align'];
// }
// tinyMCE.execCommand('mceInsertContent',false,'<img src="' + val['f_url'] + '" alt="' + val['f_alt'] + '" style="margin: ' + val['f_vert'] + 'px ' + val['f_horiz'] + 'px; border: ' + val['f_border'] + 'px solid black;' + csscode + '"/>');
//
tinyMCE.execCommand('mceInsertContent',false,'<img src="' + val['f_url'] + '" alt="' + val['f_alt'] + '" align="' + val['f_align'] + '" vspace="' + val['f_vert'] + '" hspace="' + val['f_horiz'] + '" border="' + val['f_border'] + '"/>');
}
}
};
function myCustomExecCommandHandler(editor_id, elm, command, user_interface, value) {
var linkElm, imageElm, inst;
switch (command) {
case "mceLink":
inst = tinyMCE.getInstanceById(editor_id);
linkElm = tinyMCE.getParentElement(inst.selection.getFocusElement(), "a");
//do we update or create ?
//if (linkElm) {
Dialog._arguments = new Array();
Dialog._arguments['f_href'] = tinyMCE.getAttrib(linkElm, "href");
Dialog._arguments['f_target'] = tinyMCE.getAttrib(linkElm, "target");
Dialog._arguments['f_title'] = tinyMCE.getAttrib(linkElm, "title");
//} else {
// just in case values were set in a previous run
// if (Dialog._arguments) {
// delete Dialog._arguments;
// }
//}
var LinkWindow = window.open("<?PHP echo PATH_RELATIVE ?>external/editors/connector/link.php", "Link", "width=400, height=275, resizable=yes");
LinkWindow.focus();
return true;
case "mceImage":
inst = tinyMCE.getInstanceById(editor_id);
imageElm = tinyMCE.getParentElement(inst.selection.getFocusElement(), "img");
//do we update or create ?
//if (imageElm) {
Dialog._arguments = new Array();
Dialog._arguments['f_url'] = tinyMCE.getAttrib(imageElm, "src");
Dialog._arguments['f_alt'] = tinyMCE.getAttrib(imageElm, "alt");
Dialog._arguments['f_border'] = tinyMCE.getAttrib(imageElm, "border");;
Dialog._arguments['f_horiz'] = tinyMCE.getAttrib(imageElm, "hspace");;
Dialog._arguments['f_vert'] = tinyMCE.getAttrib(imageElm, "vspace");;
Dialog._arguments['f_align'] = tinyMCE.getAttrib(imageElm, "align");
//} else {
// just in case values were set in a previous run
// if (Dialog._arguments) {
// delete Dialog._arguments;
// }
//}
var ImageWindow = window.open("<?PHP echo PATH_RELATIVE ?>external/editors/connector/insert_image.php", "Image", "width=400, height=390, resizable=yes");
ImageWindow.focus();
return true;
}
return false;
}
// initialize TinyMCE
myConfig.config = {
mode : "textareas",
editor_selector : "mceEditor",
theme : "advanced",
theme_advanced_toolbar_location : "top",
theme_advanced_layout_manager : "SimpleLayout",
add_unload_trigger : false,
language : "<?PHP echo LANG?>",
execcommand_callback : "myCustomExecCommandHandler",
convert_urls : false
};
if (Exponent.WYSIWYG_toolbar) {
myConfig.setupPlugins(Exponent.WYSIWYG_toolbar);
myConfig.setupToolbar(Exponent.WYSIWYG_toolbar);
}
tinyMCE.init(myConfig.config);
delete myConfig;
/* ]]> */
</script>
<?PHP
define("CTL_HTMLAREAINIT",1);
echo '<script type="text/javascript">htmleditorcontrols = new Array();</script>';
}
?>
<script type="text/javascript">
/* <![CDATA[ */
htmleditorcontrols[htmleditorcontrols.length] = "<?php echo $name; ?>";
/* ]]> */
</script>
<textarea class="mceEditor" id="<?php echo $name; ?>" name="<?php echo $name; ?>" style="width:100%" rows="24" cols="80"><?php echo htmlentities($this->default, ENT_COMPAT, LANG_CHARSET);?></textarea>
<?PHP
$html = ob_get_contents();
ob_end_clean();
?>
--- NEW FILE: FCKeditor.glue ---
<?PHP
##################################################
#
# Copyright (c) 2005-2006 Maxim Mueller
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
#This glue file is included by subsystems/forms/controls/htmleditorcontrol.php
#it provides the code for the htmleditorcontrol class' controltoHTML() method
# it's based on James Hunt's code for that original class
ob_start();
if (!defined("CTL_HTMLAREAINIT")) {
// We are the first htmleditor control. Set up basic initializations
?>
<script type="text/javascript" src="<?PHP echo PATH_RELATIVE . 'external/editors/' . SITE_WYSIWYG_EDITOR; ?>/fckeditor.js"></script>
<script type="text/javascript" src="<?php echo PATH_RELATIVE . 'external/editors/' . SITE_WYSIWYG_EDITOR; ?>_toolbox.js"></script>
<!-- load languagefile, prepare for HTMLArea popup(Link + Image Browsers) -->
<script type="text/javascript">
/* <![CDATA[ */
<?php
$path_to_editor = PATH_RELATIVE . "external/editors/" . SITE_WYSIWYG_EDITOR . "/";
global $db;
$config = $db->selectObject("toolbar_FCKeditor", "active=1");
if ($config) {
echo " Exponent.WYSIWYG_toolbar = " . $config->data . ";\n";
}
?>
// create namespace object
myConfig = new Object();
myConfig.serialize = function(myArray) {
var myStr = "[";
for (i = 0; i < myArray.length; i++) {
// do we have more than one dimension ?
//HACK: hoping there will never be plugins or commands that just have one character
if(myArray[i][0].length > 1) {
myStr += "['";
for (j = 0; j < myArray[i].length; j++) {
myStr += myArray[i][j];
if (j != myArray[i].length-1) {
myStr+="', '";
}
}
myStr += "']";
} else {
myStr += "'" + myArray[i] + "'";
}
if (i != myArray.length - 1) {
myStr += ", ";
}
}
myStr += "]";
return myStr;
}
myConfig.setupToolbar = function(myToolbar) {
for(currRow = 1; currRow < myToolbar.length - 1; currRow++) {
//FCKeditor's way of forcing rowbreaks is setting an "/" behind every array element
myToolbar.splice(currRow, 0, "/");
}
return this.serialize(myToolbar);
}
myConfig.setupPlugins = function(myToolbar) {
plugins = new Array();
for(currRow = 0; currRow < myToolbar.length; currRow++) {
for(currButton = 0; currButton < myToolbar[currRow].length; currButton++) {
currItem = myToolbar[currRow][currButton];
// plugin required ?
if(Exponent.WYSIWYG_toolboxbuttons[currItem][2] != "") {
plugins.push(Exponent.WYSIWYG_toolboxbuttons[currItem][2]);
}
}
}
return this.serialize(plugins);
}
var oFCKeditor = new FCKeditor('<?PHP echo $name; ?>');
oFCKeditor.BasePath = "<?PHP echo $path_to_editor; ?>";
//why do the demo articles contain newline characters ?
oFCKeditor.Value = "<?PHP echo addslashes(str_replace(array("\n","\r"), "", $this->default)); ?>";
oFCKeditor.Height= '300';
oFCKeditor.Config['LinkUpload'] = "false";
oFCKeditor.Config['ImageUpload'] = "false";
oFCKeditor.Config['FlashUpload'] = "false";
oFCKeditor.Config['LinkBrowserURL'] = "<?PHP echo $path_to_editor; ?>../connector/FCKeditor_link.php";
oFCKeditor.Config['ImageBrowserURL'] = "<?PHP echo $path_to_editor; ?>../../../modules/filemanagermodule/actions/picker.php?id=0";
//HACK: god, i do hate this editor ! Why can't i simply configure the toolbars and plugins from here ? There ARE other reasons to hate it ...
oFCKeditor.Config["CustomConfigurationsPath"] = "http://localhost:8080/external/editors/fcktoolbarconfig.js.php?toolbar=" + encodeURI(myConfig.setupToolbar(Exponent.WYSIWYG_toolbar)) + "&plugins=" + encodeURI(myConfig.setupPlugins(Exponent.WYSIWYG_toolbar));
oFCKeditor.Create();
/* ]]> */
</script>
<?PHP
define("CTL_HTMLAREAINIT",1);
}
$html = ob_get_contents();
ob_end_clean();
?>
--- NEW FILE: Xinha_toolbox.js ---
//##################################################
//#
//# Copyright (c) 2006 Maxim Mueller
//#
//# This file is part of Exponent
//#
//# Exponent is free software; you can redistribute
//# it and/or modify it under the terms of the GNU
//# General Public License as published by the Free
//# Software Foundation; either version 2 of the
//# License, or (at your option) any later version.
//#
//# GPL: http://www.gnu.org/licenses/gpl.txt
//#
//##################################################
//this file provides an Array associating availiable Actions, their Icons, and, if required for this action, their plugins, with their internal ids
//TODO: determine whether the Editor provides a queryable API for that
//TODO: adjust for themes
//TODO: possibly create a subobject WYSIWYG ?
// first = action name
// second = icon location
// third = required plugin
Exponent.WYSIWYG_toolboxbuttons = {
"about" : ["About Xinha", "/external/editors/Xinha/images/ed_about.gif", ""],
"cut" : ["cut", "/external/editors/Xinha/images/ed_cut.gif", ""],
"createlink" : ["link", "/external/editors/Xinha/images/ed_link.gif", ""],
"insertimage" : ["image", "/external/editors/Xinha/images/ed_image.gif", ""],
"abbreviation" : ["Abbreviation Dialog", "/external/editors/Xinha/plugins/Abbreviation/img/ed_abbreviation.gif", "Abbreviation"]
};
--- NEW FILE: TinyMCE_toolbox.js ---
//##################################################
//#
//# Copyright (c) 2006 Maxim Mueller
//#
//# This file is part of Exponent
//#
//# Exponent is free software; you can redistribute
//# it and/or modify it under the terms of the GNU
//# General Public License as published by the Free
//# Software Foundation; either version 2 of the
//# License, or (at your option) any later version.
//#
//# GPL: http://www.gnu.org/licenses/gpl.txt
//#
//##################################################
//this file provides an Array associating availiable Actions, their Icons, and, if required for this action, their plugins, with their internal ids
//TODO: determine whether the Editor provides a queryable API for that
//TODO: adjust for themes
//TODO: possibly create a subobject WYSIWYG ?
// first = action name
// second = icon location
// third = required plugin
Exponent.WYSIWYG_toolboxbuttons = {
"cut" : ["cut", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/cut.gif", ""],
"paste" : ["paste", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/paste.gif", ""],
"copy" : ["copy", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/copy.gif", ""],
"bold" : ["bold", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/bold.gif", ""],
"strikethrough" : ["strikethrough", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/strikethrough.gif", ""],
"underline" : ["underline", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/underline.gif", ""],
"anchor" : ["anchor", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/anchor.gif", ""],
"bullist" : ["bullist", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/bullist.gif", ""],
"backcolor" : ["backcolor", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/backcolor.gif", ""],
"browse" : ["browse", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/browse.gif", ""],
"charmap" : ["charmap", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/charmap.gif", ""],
"cleanup" : ["cleanup", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/cleanup.gif", ""],
"close" : ["close", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/close.gif", ""],
"code" : ["code", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/code.gif", ""],
"color" : ["color", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/color.gif", ""],
"forecolor" : ["forecolor", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/forecolor.gif", ""],
"help" : ["help", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/help.gif", ""],
"hr" : ["hr", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/hr.gif", ""],
"image" : ["image", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/image.gif", ""],
"indent" : ["indent", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/indent.gif", ""],
"italic" : ["italic", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/italic.gif", ""],
"justifycenter" : ["justify center", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/justifycenter.gif", ""],
"justifyfull" : ["justify full", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/justifyfull.gif", ""],
"justifyleft" : ["justify left", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/justifyleft.gif", ""],
"justifyright" : ["justify right", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/justifyright.gif", ""],
"link" : ["link", "/external/editors/TinyMCE/jscripts/tiny_mce/themes/advanced/images/link.gif", ""],
"replace" : ["replace", "/external/editors/TinyMCE/jscripts/tiny_mce/plugins/searchreplace/images/replace.gif", "searchreplace"],
"search" : ["search", "/external/editors/TinyMCE/jscripts/tiny_mce/plugins/searchreplace/images/search.gif", "searchreplace"]
};
--- NEW FILE: FCKeditor_toolbox.js ---
//##################################################
//#
//# Copyright (c) 2006 Maxim Mueller
//#
//# This file is part of Exponent
//#
//# Exponent is free software; you can redistribute
//# it and/or modify it under the terms of the GNU
//# General Public License as published by the Free
//# Software Foundation; either version 2 of the
//# License, or (at your option) any later version.
//#
//# GPL: http://www.gnu.org/licenses/gpl.txt
//#
//##################################################
//this file provides an Array associating availiable Actions, their Icons, and, if required for this action, their plugins, with their internal ids
//TODO: determine whether the Editor provides a queryable API for that
//TODO: adjust for themes
//TODO: possibly create a subobject WYSIWYG ?
// first = action name
// second = icon location
// third = required plugin
Exponent.WYSIWYG_toolboxbuttons = {
"About" : ["About FCKEditor", "/external/editors/FCKeditor/editor/skins/default/toolbar/about.gif", ""],
"Image" : ["Image", "/external/editors/FCKeditor/editor/skins/default/toolbar/image.gif", ""],
"Link" : ["Link", "/external/editors/FCKeditor/editor/skins/default/toolbar/link.gif", ""],
"TableInsertRow" : ["Insert a Table", "/external/editors/FCKeditor/editor/skins/default/toolbar/tableinsertrow.gif", "tablecommands"]
};
--- NEW FILE: Xinha.glue ---
<?PHP
##################################################
#
# Copyright (c) 2005-2006 Maxim Mueller
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
#This glue file is included by subsystems/forms/controls/htmleditorcontrol.php
#it provides the code for the htmleditorcontrol class' controltoHTML() method
# it's based on James Hunt's code for that original class
ob_start();
if (!defined("CTL_HTMLAREAINIT")) {
$path_to_editor = PATH_RELATIVE . "external/editors/" . SITE_WYSIWYG_EDITOR . "/";
?>
<script type="text/javascript">
/* <![CDATA[ */
_editor_url = "<?php echo $path_to_editor; ?>";
_editor_lang = "<?PHP echo LANG; ?>";
/* ]]> */
</script>
<script type="text/javascript" src="<?PHP echo PATH_RELATIVE . 'external/editors/' . SITE_WYSIWYG_EDITOR; ?>/htmlarea.js"></script>
<script type="text/javascript" src="<?php echo PATH_RELATIVE . 'external/editors/' . SITE_WYSIWYG_EDITOR; ?>_toolbox.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
<?php
global $db;
$config = $db->selectObject("toolbar_Xinha", "active=1");
if ($config) {
echo " Exponent.WYSIWYG_toolbar = " . $config->data . ";\n";
}
?>
// new namespace for our config
myConfig = new Object();
// if plugins are needed, set them up
myConfig.setupPlugins = function (myToolbar) {
plugins = new Array();
for(currRow = 0; currRow < myToolbar.length; currRow++) {
for(currButton = 0; currButton < myToolbar[currRow].length; currButton++) {
currItem = myToolbar[currRow][currButton];
// plugin required ?
if(Exponent.WYSIWYG_toolboxbuttons[currItem][2] != "") {
plugins.push(Exponent.WYSIWYG_toolboxbuttons[currItem][2]);
}
}
}
//serialize
for(currPlugin = 0; currPlugin < plugins.length; currPlugin++) {
HTMLArea.loadPlugin(plugins[currPlugin]);
}
}
myConfig.setupToolbar = function (myToolbar) {
return myToolbar;
}
<!-- Setup initialization functions for htmleditorcontrol -->
// Setup the basic HTMLArea environment
HTMLArea.loadPlugin("ContextMenu");
HTMLArea.loadPlugin("Template");
var htmleditorcontrols = new Array(); // an array of textareanames.
var editors = new Array();
// Register an initialization function with the Exponent JS Support System.
// This will be called onLoad (assuming the theme is playing nice)
var once = false;
exponentJSregister(function () {
for (i = 0; i < htmleditorcontrols.length; i++) {
editors[i] = new HTMLArea(htmleditorcontrols[i]);
editors[i].config = htmleditorconfig;
setTimeout("editors["+i+"].generate();",i*500+100);
}
});
var htmleditorconfig = new HTMLArea.Config();
htmleditorconfig.debug = false;
//redirect Image&Link browsers to E's connector
htmleditorconfig.URIs = {
"blank": "blank.html",
"link": "../../connector/link.php",
"insert_image": "../../connector/insert_image.php",
"insert_table": "insert_table.html",
"select_color": "select_color.html",
"about": "about.html",
"help": "editor_help.html"
};
if (Exponent.WYSIWYG_toolbar) {
myConfig.setupPlugins(Exponent.WYSIWYG_toolbar);
htmleditorconfig.toolbar = myConfig.setupToolbar(Exponent.WYSIWYG_toolbar);
}
/* ]]> */
</script>
<?php
define("CTL_HTMLAREAINIT", 1);
}
// all setup has been done.
?>
<script type="text/javascript">
htmleditorcontrols[htmleditorcontrols.length] = "<?php echo $name; ?>";
</script>
<textarea id="<?php echo $name; ?>" name="<?php echo $name; ?>" style="width:100%" rows="24" cols="80"><?php echo htmlentities($this->default, ENT_COMPAT, LANG_CHARSET);?></textarea>
<?php
$html = ob_get_contents();
ob_end_clean();
?>
--- NEW FILE: fcktoolbarconfig.js.php ---
<?PHP
##################################################
#
# Copyright (c) 2006 Maxim Mueller
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
header('Content-type: text/javascript', true);
?>
FCKConfig.ToolbarSets["Default"] = <?PHP echo stripslashes($_GET['toolbar']); ?>;
plugins = <?PHP echo stripslashes($_GET['plugins']); ?>;
for(currPlugin = 0; currPlugin < plugins.length; currPlugin++) {
FCKConfig.Plugins.Add(plugins[currPlugin], null );
}
|