Vlad Kurkin (b_vladi) wrote in changelog,
Vlad Kurkin
b_vladi
changelog

[livejournal] r20155: LJSUP-9920: Link was deleted after doubl...

Committer: vkurkin
LJSUP-9920: Link was deleted after double click on it (chrome)
U   trunk/htdocs/js/ck/plugins/livejournal/plugin.js
Modified: trunk/htdocs/js/ck/plugins/livejournal/plugin.js
===================================================================
--- trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-09-28 07:03:09 UTC (rev 20154)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-09-28 07:29:43 UTC (rev 20155)
@@ -322,7 +322,7 @@
 					}
 				}
 			}
-			
+
 			editor.dataProcessor.toHtml = function(html, fixForBody) {
 				html = html
 					.replace(/(<lj [^>]+)(?!\/)>/gi, '$1 />')
@@ -375,6 +375,8 @@
 					body.appendHtml('<br />');
 					selection && selection.selectBookmarks(bookmark);
 				}
+
+				currentNoteNode = null;
 			}
 
 			editor.on('selectionChange', findLJTags);
@@ -392,13 +394,16 @@
 						if (cmd.state == CKEDITOR.TRISTATE_ON) {
 							var selection = new CKEDITOR.dom.selection(editor.document);
 							selection.selectElement(node);
+							currentNoteNode = node;
 							evt.data.dialog = '';
 							cmd.exec();
-							break;
+							return;
 						}
 					}
 					node = node.getParent();
 				}
+
+				currentNoteNode = null;
 			});
 
 			editor.on('dataReady', function() {

Tags: b_vladi, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments