Return-Path: X-Original-To: apmail-ofbiz-dev-archive@www.apache.org Delivered-To: apmail-ofbiz-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D04B1175DB for ; Sat, 21 Feb 2015 07:41:29 +0000 (UTC) Received: (qmail 82142 invoked by uid 500); 21 Feb 2015 07:40:30 -0000 Delivered-To: apmail-ofbiz-dev-archive@ofbiz.apache.org Received: (qmail 82111 invoked by uid 500); 21 Feb 2015 07:40:30 -0000 Mailing-List: contact dev-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list dev@ofbiz.apache.org Received: (qmail 82031 invoked by uid 99); 21 Feb 2015 07:40:30 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Feb 2015 07:40:30 +0000 Date: Sat, 21 Feb 2015 07:40:30 +0000 (UTC) From: "Sharan Foga (JIRA)" To: dev@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (OFBIZ-5537) Content WYSIWYG Editor does not support the FTL syntax MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OFBIZ-5537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sharan Foga updated OFBIZ-5537: ------------------------------- Sprint: Bug Crush Event - 21/2/2015 > Content WYSIWYG Editor does not support the FTL syntax > ------------------------------------------------------ > > Key: OFBIZ-5537 > URL: https://issues.apache.org/jira/browse/OFBIZ-5537 > Project: OFBiz > Issue Type: Improvement > Components: content > Affects Versions: Trunk > Reporter: Ritu Raj Lakhera > > When We change the content in WYSIWYG Editor. This is loosing the FTL syntax after saving. > I tried with 'STDWRAP001' data resource. > https://demo-trunk.ofbiz.apache.org:8443/content/control/EditHtmlText?dataResourceId=STDWRAP001 > https://demo-trunk.ofbiz.apache.org:8443/content/control/EditElectronicText?dataResourceId=STDWRAP001 > For Ex: > If content have the below text > <#if x == 1> > x is 1 > <#else> > x is not 1 > > and then go to WYSIWYG Editor, it becomes: > <#if x == 1> > x is 1 > <#else/> > x is not 1 > > > I am also getting the some unexpected behaviour in WYSIWYG Editor. > If i write below code in WYSIWYG Editor > <#if x == 1> > x is 1 > <#else> > x is not 1 > > and then toggle to source code, it becomes: > <#if x == 1> > x is 1 > <#else/> > x is not 1 > </#if> > I think this will work for Ofbiz content. > But when i write the same code in source code and then toggle to WYSIWYG Editor and again toggle to source code, it becomes: > <#if x == 1> > x is 1 > <#else> > x is not 1 > > Is there a way to configure this WYSIWYG Editor to handle these idioms so that when I change the data in this editor and a simple text area that the markup remains consistent? -- This message was sent by Atlassian JIRA (v6.3.4#6332)