Hi All,
When I am changing 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 You can check this with 'WRAP_STD_001' data resource. https://demo-trunk.ofbiz.apache.org:8443/content/control/EditElectronicText?dataResourceId=WRAP_STD_001 https://demo-trunk.ofbiz.apache.org:8443/content/control/EditHtmlText?dataResourceId=WRAP_STD_001 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: <#if x == 1> x is 1 <#else / > 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? Regards Ritu Raj Lakhera Solveda India (formerly known as Salmon India) Phone. +91-9560087139 Email. [hidden email] Skype. lakhera.rituraj |
Administrator
|
This is indeed an issue but can't be fixed with WYSIWYG Editor (nor with jQuery).
In EditHtmlText.textData form field we need to use encode-output="true" for things to work, but then we are screwed when updating. So we need to find a way to decode back before saving. Since we use the updateElectronicText service and it's implemented by a simple-method, I think the only option is to rather switch to Java for this peculiar case. A Jira issue with a contribution would be become... Jacques On Tuesday, January 14, 2014 7:48 AM, [hidden email] wrote > Hi All, > > When I am changing 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 > > You can check this with 'WRAP_STD_001' data resource. > https://demo-trunk.ofbiz.apache.org:8443/content/control/EditElectronicText?dataResourceId=WRAP_STD_001 > https://demo-trunk.ofbiz.apache.org:8443/content/control/EditHtmlText?dataResourceId=WRAP_STD_001 > > 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: > > <#if x == 1> > x is 1 > <#else / > > 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? > > Regards > > Ritu Raj Lakhera > > Solveda India > (formerly known as Salmon India) > Phone. +91-9560087139 > Email. [hidden email] > Skype. lakhera.rituraj |
Administrator
|
I checked this was working in R09.04, I will have a closer look...
Jacques On Sunday, January 19, 2014 3:02 PM, [hidden email] wrote > This is indeed an issue but can't be fixed with WYSIWYG Editor (nor with jQuery). > > In EditHtmlText.textData form field we need to use encode-output="true" for things to work, but then we are screwed when > updating. > So we need to find a way to decode back before saving. Since we use the updateElectronicText service and it's implemented by a > simple-method, I think the only option is to rather switch to Java for this peculiar case. A Jira issue with a contribution would > be become... > > Jacques > > On Tuesday, January 14, 2014 7:48 AM, [hidden email] wrote >> Hi All, >> >> When I am changing 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 >> >> You can check this with 'WRAP_STD_001' data resource. >> https://demo-trunk.ofbiz.apache.org:8443/content/control/EditElectronicText?dataResourceId=WRAP_STD_001 >> https://demo-trunk.ofbiz.apache.org:8443/content/control/EditHtmlText?dataResourceId=WRAP_STD_001 >> >> 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: >> >> <#if x == 1> >> x is 1 >> <#else / > >> 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? >> >> Regards >> >> Ritu Raj Lakhera >> >> Solveda India >> (formerly known as Salmon India) >> Phone. +91-9560087139 >> Email. [hidden email] >> Skype. lakhera.rituraj |
In reply to this post by Ritu Raj Lakhera-2
Thanks Jacques for looking in this. Could you please share the R9 demo site URL?
Regards Ritu Raj Lakhera Solveda India (formerly known as Salmon India) Phone. +91-9560087139 Email. [hidden email] Skype. lakhera.rituraj On Mon, Jan 27, 2014 at 2:34 PM, Jacques Le Roux < [hidden email] > wrote: I checked this was working in R09.04, I will have a closer look... Jacques On Sunday, January 19, 2014 3:02 PM, [hidden email] wrote > This is indeed an issue but can't be fixed with WYSIWYG Editor (nor with jQuery). > > In EditHtmlText.textData form field we need to use encode-output="true" for things to work, but then we are screwed when > updating. > So we need to find a way to decode back before saving. Since we use the updateElectronicText service and it's implemented by a > simple-method, I think the only option is to rather switch to Java for this peculiar case. A Jira issue with a contribution would > be become... > > Jacques > > On Tuesday, January 14, 2014 7:48 AM, [hidden email] wrote >> Hi All, >> >> When I am changing 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 >> >> You can check this with 'WRAP_STD_001' data resource. >> https://demo-trunk.ofbiz. apache.org:8443/content/ control/EditElectronicText? dataResourceId=WRAP_STD_001 >> https://demo-trunk.ofbiz. apache.org:8443/content/ control/EditHtmlText? dataResourceId=WRAP_STD_001 >> >> 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: >> >> <#if x == 1> >> x is 1 >> <#else / > >> 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? >> >> Regards >> >> Ritu Raj Lakhera >> >> Solveda India >> (formerly known as Salmon India) >> Phone. +91-9560087139 >> Email. [hidden email] >> Skype. lakhera.rituraj |
Administrator
|
Ritu Raj,
There is no longer a R9 demo, but you can grab it from the branch or old releases https://svn.apache.org/repos/asf/ofbiz/branches/release09.04 http://archive.apache.org/dist/ofbiz/ Jacques On Wednesday, January 29, 2014 10:35 AM, [hidden email] wrote > Thanks Jacques for looking in this. Could you please share the R9 demo site URL? > > Regards > > Ritu Raj Lakhera > > Solveda India > (formerly known as Salmon India) > Phone. +91-9560087139 > Email. [hidden email] > Skype. lakhera.rituraj > > On Mon, Jan 27, 2014 at 2:34 PM, Jacques Le Roux < [hidden email] > wrote: > > > I checked this was working in R09.04, I will have a closer look... > > Jacques > > On Sunday, January 19, 2014 3:02 PM, [hidden email] wrote > > >> This is indeed an issue but can't be fixed with WYSIWYG Editor (nor with jQuery). >> >> In EditHtmlText.textData form field we need to use encode-output="true" for things to work, but then we are screwed when >> updating. >> So we need to find a way to decode back before saving. Since we use the updateElectronicText service and it's implemented by a >> simple-method, I think the only option is to rather switch to Java for this peculiar case. A Jira issue with a contribution would >> be become... >> >> Jacques >> >> On Tuesday, January 14, 2014 7:48 AM, [hidden email] wrote >>> Hi All, >>> >>> When I am changing 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 >>> >>> You can check this with 'WRAP_STD_001' data resource. >>> https://demo-trunk.ofbiz. apache.org:8443/content/ control/EditElectronicText? dataResourceId=WRAP_STD_001 >>> https://demo-trunk.ofbiz. apache.org:8443/content/ control/EditHtmlText? dataResourceId=WRAP_STD_001 >>> >>> 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: >>> >>> <#if x == 1> >>> x is 1 >>> <#else / > >>> 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? >>> >>> Regards >>> >>> Ritu Raj Lakhera >>> >>> Solveda India >>> (formerly known as Salmon India) >>> Phone. +91-9560087139 >>> Email. [hidden email] >>> Skype. lakhera.rituraj |
Administrator
|
Hi Ritu Raj,
Would you like to open a Jira issue for that? Jacques On Wednesday, January 29, 2014 10:47 AM, [hidden email] wrote > Ritu Raj, > > There is no longer a R9 demo, but you can grab it from the branch or old releases > https://svn.apache.org/repos/asf/ofbiz/branches/release09.04 > http://archive.apache.org/dist/ofbiz/ > > Jacques > > On Wednesday, January 29, 2014 10:35 AM, [hidden email] wrote >> Thanks Jacques for looking in this. Could you please share the R9 demo site URL? >> >> Regards >> >> Ritu Raj Lakhera >> >> Solveda India >> (formerly known as Salmon India) >> Phone. +91-9560087139 >> Email. [hidden email] >> Skype. lakhera.rituraj >> >> On Mon, Jan 27, 2014 at 2:34 PM, Jacques Le Roux < [hidden email] > wrote: >> >> >> I checked this was working in R09.04, I will have a closer look... >> >> Jacques >> >> On Sunday, January 19, 2014 3:02 PM, [hidden email] wrote >> >> >>> This is indeed an issue but can't be fixed with WYSIWYG Editor (nor with jQuery). >>> >>> In EditHtmlText.textData form field we need to use encode-output="true" for things to work, but then we are screwed when >>> updating. >>> So we need to find a way to decode back before saving. Since we use the updateElectronicText service and it's implemented by a >>> simple-method, I think the only option is to rather switch to Java for this peculiar case. A Jira issue with a contribution >>> would be become... >>> >>> Jacques >>> >>> On Tuesday, January 14, 2014 7:48 AM, [hidden email] wrote >>>> Hi All, >>>> >>>> When I am changing 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 >>>> >>>> You can check this with 'WRAP_STD_001' data resource. >>>> https://demo-trunk.ofbiz. apache.org:8443/content/ control/EditElectronicText? dataResourceId=WRAP_STD_001 >>>> https://demo-trunk.ofbiz. apache.org:8443/content/ control/EditHtmlText? dataResourceId=WRAP_STD_001 >>>> >>>> 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: >>>> >>>> <#if x == 1> >>>> x is 1 >>>> <#else / > >>>> 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? >>>> >>>> Regards >>>> >>>> Ritu Raj Lakhera >>>> >>>> Solveda India >>>> (formerly known as Salmon India) >>>> Phone. +91-9560087139 >>>> Email. [hidden email] >>>> Skype. lakhera.rituraj |
Hello Jacques,
I just opened a Jira issue for this. Please check https://issues.apache.org/jira/browse/OFBIZ-5537 Regards Ritu Raj Lakhera ----- Original Message ----- From: "Jacques Le Roux" <[hidden email]> To: [hidden email] Sent: Sunday, February 9, 2014 3:40:05 AM Subject: Re: Content WYSIWYG Editor does not support the FTL syntax Hi Ritu Raj, Would you like to open a Jira issue for that? Jacques On Wednesday, January 29, 2014 10:47 AM, [hidden email] wrote > Ritu Raj, > > There is no longer a R9 demo, but you can grab it from the branch or old releases > https://svn.apache.org/repos/asf/ofbiz/branches/release09.04 > http://archive.apache.org/dist/ofbiz/ > > Jacques > > On Wednesday, January 29, 2014 10:35 AM, [hidden email] wrote >> Thanks Jacques for looking in this. Could you please share the R9 demo site URL? >> >> Regards >> >> Ritu Raj Lakhera >> >> Solveda India >> (formerly known as Salmon India) >> Phone. +91-9560087139 >> Email. [hidden email] >> Skype. lakhera.rituraj >> >> On Mon, Jan 27, 2014 at 2:34 PM, Jacques Le Roux < [hidden email] > wrote: >> >> >> I checked this was working in R09.04, I will have a closer look... >> >> Jacques >> >> On Sunday, January 19, 2014 3:02 PM, [hidden email] wrote >> >> >>> This is indeed an issue but can't be fixed with WYSIWYG Editor (nor with jQuery). >>> >>> In EditHtmlText.textData form field we need to use encode-output="true" for things to work, but then we are screwed when >>> updating. >>> So we need to find a way to decode back before saving. Since we use the updateElectronicText service and it's implemented by a >>> simple-method, I think the only option is to rather switch to Java for this peculiar case. A Jira issue with a contribution >>> would be become... >>> >>> Jacques >>> >>> On Tuesday, January 14, 2014 7:48 AM, [hidden email] wrote >>>> Hi All, >>>> >>>> When I am changing 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 >>>> >>>> You can check this with 'WRAP_STD_001' data resource. >>>> https://demo-trunk.ofbiz. apache.org:8443/content/ control/EditElectronicText? dataResourceId=WRAP_STD_001 >>>> https://demo-trunk.ofbiz. apache.org:8443/content/ control/EditHtmlText? dataResourceId=WRAP_STD_001 >>>> >>>> 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: >>>> >>>> <#if x == 1> >>>> x is 1 >>>> <#else / > >>>> 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? >>>> >>>> Regards >>>> >>>> Ritu Raj Lakhera >>>> >>>> Solveda India >>>> (formerly known as Salmon India) >>>> Phone. +91-9560087139 >>>> Email. [hidden email] >>>> Skype. lakhera.rituraj |
Free forum by Nabble | Edit this page |