Committer: vkurkin
LJSUP-9488: cant not post post from rteU 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');