[ 
https://issues.apache.org/jira/browse/OFBIZ-5537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14254690#comment-14254690
 ] 

Divesh Dutta commented on OFBIZ-5537:
-------------------------------------

WYSIWYG editor in OFBiz is powered by elRTE open source text editor. elRTE does 
not give support of FTL . I guess when this editor was introduced it was known 
that elRTE does not give support of FTL. So this is not some thing which is 
expected to work and not working. 

So for sure this is not a bug. But I guess this will be a good improvement to 
add support of FTL in WYSIWYG editor. And since elRTE does not support FTL, we 
can consider some other open source editor. Which editor should we consider is 
again a point of discussion in community. Also official website of elRTE i.e 
http://elrte.org/ is not giving any information of elRTE editor. I suspect that 
this community is not active now. 

http://codemirror.net/ is one of the open source editor which enables you  to 
add support of any library (FTL). We can discuss more on which text editor will 
be best .

For now we should keep this issue open for discussion. But I recommend to 
change the issue type to an improvement. 


> 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: Bug
>          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)

Reply via email to