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

Sascha Rodekamp updated OFBIZ-3815:
-----------------------------------

    Attachment: OFBIZ-3815_WebSiteCMSMigration_part2.patch
                OFBIZ-3815_elrteEditorPlugin.zip

Hi guys,
so finally i migrated the last WebCms Content Screens.
I added the jsTree for the CMS Web Site Page and replace the old dojo WYSIWYG 
Editor with the one 
editor from elrte [http://elrte.org/].

To apply the patch:
1.) Copy the files from the zip archive into the jquery/plugin folder
2.) apply the patch file OFBIZ-3815_ContentNavigationMigration_part1.patch
3.) apply the patch file OFBIZ-3815_WebSiteCMSMigration_part2.patch

One issue regarding the new editor occurred which i want first discuss.

When i write my text and store it with the Editor everything is fine, the HTML 
code is stored in the electronicText Table.
But when i reload the site and the editor get the stored data from the DB i.e.
{code}
<p>Dummy Text</p>
{code}

Freemarker encode the <p> Tag in HTML Save Characters (works as designed :-)). 
So we need a method which decodes the HTML Save output into normal HTML output 
to let the 
editor handle the data the right way. So We need something like 
'encodeXmlValue' (the other way round).
Any Ideas or preferences?

Have a good evening 
Sascha






> Content Navigation Tree implemented with jQuery
> -----------------------------------------------
>
>                 Key: OFBIZ-3815
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3815
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: content
>    Affects Versions: jQuery
>            Reporter: Sascha Rodekamp
>            Assignee: Erwan de FERRIERES
>             Fix For: jQuery
>
>         Attachments: OFBIZ-3815_ContentNavigationMigration_part1.patch, 
> OFBIZ-3815_elrteEditorPlugin.zip, 
> OFBIZ-3815_jqueryExample_ContentNavigation.patch, 
> OFBIZ-3815_jqueryExample_ContentNavigation.patch, OFBIZ-3815_plugins.zip, 
> OFBIZ-3815_plugins.zip, OFBIZ-3815_WebSiteCMSMigration_part2.patch, OFBIZ_3815
>
>
> Hi,
> here is the first (test) patch for the jQuery implementation.
> I changed the content navigation tree for a first test:
> [https://localhost:8443/content/control/navigateContent]
> The implementation was much easier than expected :-)
> I choose the jsTree Plugin v. 1.0rc (in the next days their will be a final 
> 1.0 release, that's why i choose the rc).
> [http://www.jstree.com/]
> I also added 
> {code}
> jQuery.noConflict();
> {code}
> to the libary. That overwrites the '$( ... )' operator to prevent conflicts 
> with prototype. This line can be deleted after prototype is totally replaced.
> For know we have to call jQuery via jQuery( .... ) instead of $( ... ).
> To apply the patch the zip file have to copied to /images/jquery/
> it contains a plugin folder with the jsTree plugin
> (should look like /images/jquery/plugins/jsTree)
> So long 
> Sascha

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to