Jak ustawić ten kod, aby link zawsze otwierał się w nowym oknie i aby nie było wyboru czy otworzyć ma się w tym samym oknie czy w nowym?

[JAVASCRIPT] pobierz, plaintext
  1. var nicLinkButton = nicEditorAdvancedButton.extend({
  2. addPane: function() {
  3. this.ln = this.ne.selectedInstance.selElm().parentTag("A");
  4. this.addForm({ "": { type: "title", txt: "Add/Edit Link" }, href: { type: "text", txt: "URL", value: "http://", style: { width: "150px" } }, title: { type: "text", txt: "Title" }, target: { type: "select", txt: "Open In", options: { "": "Current Window", _blank: "New Window" }, style: { width: "100px" } } }, this.ln)
  5. },
  6. submit: function(C) {
  7. var A = this.inputs.href.value;
  8. if (A == "http://" || A == "") { alert("You must enter a URL to Create a Link"); return false }
  9. this.removePane();
  10. if (!this.ln) {
  11. var B = "java script:nicTemp();";
  12. this.ne.nicCommand("createlink", B);
  13. this.ln = this.findElm("A", "href", B)
  14. }
  15. if (this.ln) { this.ln.setAttributes({ href: this.inputs.href.value, title: this.inputs.title.value, target: this.inputs.target.options[this.inputs.target.selectedIndex].value }) }
  16. }
  17. });
  18. nicEditors.registerPlugin(nicPlugin, nicLinkOptions);
[JAVASCRIPT] pobierz, plaintext


Zauważyłem również, że podczas zapisywania "target="_blank" usuwany jest.
Czy to problem ze skryptem czy z tym edytorem?