You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Ashish Vijaywargiya (JIRA)" <ji...@apache.org> on 2014/12/20 13:32:13 UTC

[jira] [Updated] (OFBIZ-5537) Content WYSIWYG Editor does not support the FTL syntax

     [ https://issues.apache.org/jira/browse/OFBIZ-5537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Vijaywargiya updated OFBIZ-5537:
---------------------------------------
    Issue Type: Improvement  (was: Bug)

Based on Divesh's recent comment we can change this type to "Improvement" instead of calling it "Bug".

> 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
>   </#if>
> and then go to WYSIWYG Editor, it becomes:
>  &lt;#if x == 1&gt;
>     x is 1
>  &lt;#else/&gt;
>     x is not 1
>  <!-- #if-->
>  
> 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
>   </#if>
> and then toggle to source code, it becomes:
>   &lt;#if x == 1&gt;
>     x is 1
>   &lt;#else/&gt;
>     x is not 1
>   &lt;/#if&gt;
> 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:
>   &lt;#if x == 1&gt;
>     x is 1
>   &lt;#else&gt;
>     x is not 1
>   <!-- #if-->  
> 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)