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:
parent
27bcd182fc
commit
12719951c9
3
NEWS
3
NEWS
|
@ -1,5 +1,8 @@
|
||||||
1.6.15: ?
|
1.6.15: ?
|
||||||
* No longer charging for Luminotes Desktop or offering subscription signups.
|
* 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
|
1.6.14: June 14, 2009
|
||||||
* Fixed a bug in which some printed or exported notes appeared in
|
* Fixed a bug in which some printed or exported notes appeared in
|
||||||
|
|
|
@ -1314,9 +1314,9 @@ Editor.prototype.end_link = function () {
|
||||||
if ( this.iframe.contentWindow && this.iframe.contentWindow.getSelection ) { // browsers such as Firefox
|
if ( this.iframe.contentWindow && this.iframe.contentWindow.getSelection ) { // browsers such as Firefox
|
||||||
this.exec_command( "unlink" );
|
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
|
// end of the link if it's not already there
|
||||||
if ( link && WEBKIT ) {
|
if ( link ) {
|
||||||
var selection = this.iframe.contentWindow.getSelection();
|
var selection = this.iframe.contentWindow.getSelection();
|
||||||
var sentinel = this.document.createTextNode( Editor.title_placeholder_char );
|
var sentinel = this.document.createTextNode( Editor.title_placeholder_char );
|
||||||
insertSiblingNodesAfter( link, sentinel );
|
insertSiblingNodesAfter( link, sentinel );
|
||||||
|
|
Reference in New Issue
Block a user