In the textedit.js file the area that covers inputing a hyperlink has a problem.
You have
Which creates a popup window to enter the url but not a window to enter the text that the url goes to so it automatically puts in the url in both places.
What code do I need to enter here to change this so you are promted for the text and then the url?
You have
Code:
* Insert Link */ this._createlink = this.createlink; this.createlink = function(e, url) { if (typeof url == 'undefined') { url = this.show_prompt(vbphrase['enter_link_url'], 'http://'); } if ((url = this.verify_prompt(url)) !== false) { if (this.get_selection()) { this.apply_format('unlink'); this._createlink(e, url); } else { this.insert_text('<a href="' + url + '">' + url + '</a>'); } } return true; };
What code do I need to enter here to change this so you are promted for the text and then the url?
Comment