witten
/
luminotes
Archived
1
0
Fork 0

Fixed a Firefox 3.5 bug in which after ending a link ctrl-L, typed text ended up as part of the link.

This commit is contained in:
Dan Helfman 2009-07-11 22:43:31 -07:00
parent 27bcd182fc
commit 12719951c9
2 changed files with 5 additions and 2 deletions

3
NEWS
View File

@ -1,5 +1,8 @@
1.6.15: ?
* No longer charging for Luminotes Desktop or offering subscription signups.
* Fixed a Firefox 3.5 bug in which after ending a link ctrl-L, typed text
ended up as part of the link. Now, ctrl-L properly ends the link and any
typed text after the link does not become linked itself.
1.6.14: June 14, 2009
* Fixed a bug in which some printed or exported notes appeared in

View File

@ -1314,9 +1314,9 @@ Editor.prototype.end_link = function () {
if ( this.iframe.contentWindow && this.iframe.contentWindow.getSelection ) { // browsers such as Firefox
this.exec_command( "unlink" );
// necessary to actually end a link in WebKit. the side-effect is that the cursor jumps to the
// necessary to actually end a link. the side-effect is that the cursor jumps to the
// end of the link if it's not already there
if ( link && WEBKIT ) {
if ( link ) {
var selection = this.iframe.contentWindow.getSelection();
var sentinel = this.document.createTextNode( Editor.title_placeholder_char );
insertSiblingNodesAfter( link, sentinel );