Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/oacs-fs.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/Attic/oacs-fs.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/oacs-fs.js 11 Nov 2005 20:32:46 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/oacs-fs.js 4 Jun 2006 00:45:53 -0000 1.2 @@ -39,11 +39,13 @@ var self = this; //alert(this.editor.config.fs_package_id); + //alert("length=" + bl.length); // register the toolbar buttons provided by this plugin for (var i = 0; i < bl.length; ++i) { var btn = bl[i]; var id = "LW-" + btn[0]; + cfg.registerButton(id, HTMLArea._lc(btn[1], "OacsFs"), editor.imgURL(btn[0] + ".gif", "OacsFs"), false, function(editor, id) { // dispatch button press event @@ -59,14 +61,15 @@ break; } } + cfg.hideSomeButtons(" insertimage "); cfg.pageStyle = "@import url(" + _editor_url + "plugins/OacsFs/oacs-fs.css) screen; " }; OacsFs.btnList = [ ["insert-ilink", "Insert Internal Link"], - ["insert-image", "Insert Image"], + ["insert-image", "Insert Image"] ]; OacsFs.prototype.buttonPress = function(editor, id) {