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.2.2 -r1.1.2.3 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/oacs-fs.js 12 Nov 2005 10:21:19 -0000 1.1.2.2 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/oacs-fs.js 13 Nov 2005 18:31:01 -0000 1.1.2.3 @@ -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) { Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/file-selector.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/file-selector.adp,v diff -u -r1.1.2.2 -r1.1.2.3 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/file-selector.adp 12 Nov 2005 10:41:34 -0000 1.1.2.2 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/file-selector.adp 13 Nov 2005 18:31:02 -0000 1.1.2.3 @@ -16,7 +16,7 @@ opener.document.getElementById("f_url").value = document.getElementById(id + "_file_url").value; opener.document.getElementById("f_name").value = document.getElementById(id + "_file_name").value; - opener.document.getElementById("f_title").value = document.getElementById(id + "_file_title").value; + opener.document.getElementById("f_alt").value = document.getElementById(id + "_file_title").value; opener.onPreview(); Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/insert-ilink.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/insert-ilink.adp,v diff -u -r1.1.2.2 -r1.1.2.3 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/insert-ilink.adp 12 Nov 2005 10:41:34 -0000 1.1.2.2 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/insert-ilink.adp 13 Nov 2005 18:31:02 -0000 1.1.2.3 @@ -1,4 +1,4 @@ - + #acs-templating.HTMLArea_InsertModifyLink# @@ -8,7 +8,7 @@