can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19862: LJSV-1729: Can't click insertion point t...

Committer: dpetrov
LJSV-1729: Can't click insertion point to end of paragraph in HTML editor in Chrome or Safari
U   trunk/htdocs/js/rte.js
Modified: trunk/htdocs/js/rte.js
===================================================================
--- trunk/htdocs/js/rte.js	2011-08-26 04:18:26 UTC (rev 19861)
+++ trunk/htdocs/js/rte.js	2011-08-26 04:34:17 UTC (rev 19862)
@@ -162,7 +162,7 @@
 			$('#entry-form-wrapper').attr('class', 'hide-richtext');
 			if (CKEditor) {
 
-				var data = CKEditor.getData();
+				var data = CKEditor.getData().trim(); //also remove trailing spaces and newlines
 				CKEditor.container.hide();
 				CKEditor.element.show();
 

Tags: can3p, 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