r9970 - apps/gobi/trunk/code/Page
[email protected] Mon, 28 Sep 2009 14:37:01 +0200 (CEST)
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090928123701.A70903D0E2@mia> |
Author: hannes
Date: 2009-09-28 14:37:01 +0200 (Mon, 28 Sep 2009)
New Revision: 9970
Modified:
apps/gobi/trunk/code/Page/PageActions.js
Log:
disable replacing <br> tags for fckEditor in edit action
Details at http://dev.helma.org/trac/helma/changeset/9970
Modified: apps/gobi/trunk/code/Page/PageActions.js
===================================================================
--- apps/gobi/trunk/code/Page/PageActions.js 2009-09-28 12:21:16 UTC (rev 9969)
+++ apps/gobi/trunk/code/Page/PageActions.js 2009-09-28 12:37:01 UTC (rev 9970)
@@ -259,10 +259,10 @@
// if user clicked "save" read form data
if (req.isPost()) {
if (req.data.save) {
- if(req.data.body){
+ // if(req.data.body) {
// replace break tags with newline for fckEditor workaround
- req.data.body = req.data.body.replace(/<br[^>]*>[\n\r]*/g, "\r\n");
- }
+ // req.data.body = req.data.body.replace(/<br[^>]*>[\n\r]*/g, "\r\n");
+ // }
// get old body and formdata to check if we need to create new version
var oldBody = this.body;
var oldFormdata = this.getFormData().clone();