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

[livejournal] r19700: LJSUP-9488: cant not post post from rte

Committer: vkurkin
LJSUP-9488: cant not post post from rte
U   trunk/htdocs/js/ck/config.js
U   trunk/htdocs/js/rte.js
Modified: trunk/htdocs/js/ck/config.js
===================================================================
--- trunk/htdocs/js/ck/config.js	2011-08-11 07:33:32 UTC (rev 19699)
+++ trunk/htdocs/js/ck/config.js	2011-08-11 08:01:23 UTC (rev 19700)
@@ -126,8 +126,8 @@
 
 	config.toolbar = 'Full';
 	config.enterMode = CKEDITOR.ENTER_BR;
-	config.forceEnterMode = true;
-	config.shiftEnterMode = CKEDITOR.ENTER_P;
+	config.forceEnterMode = false;
+	config.shiftEnterMode = CKEDITOR.ENTER_BR;
 
 	config.keystrokes = [
     [ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ],

Modified: trunk/htdocs/js/rte.js
===================================================================
--- trunk/htdocs/js/rte.js	2011-08-11 07:33:32 UTC (rev 19699)
+++ trunk/htdocs/js/rte.js	2011-08-11 08:01:23 UTC (rev 19700)
@@ -44,11 +44,11 @@
 
 					editor.resetDirty();
 
-					$('#updateForm').onsubmit = function() {
+					$('#updateForm').bind('submit', function() {
 						if (window.switchedRteOn) {
 							draftData.textArea.val(CKEditor.getData());
 						}
-					};
+					});
 
 					CKEditor.on('dataReady', function() {
 						$('#entry-form-wrapper').attr('class', 'hide-html');

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