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

Jacques Le Roux commented on OFBIZ-3815:
----------------------------------------

I had a closer look at and I like it too. The reasons: 
* it looks good: http://elrte.org/demo (though I don't like much how it formats 
the source - see source tab - but I agree that's minor and for instance 
[cleditor|http://premiumsoftware.net/cleditor] does not do better)
* it is written with jQuery and jQuery-UI only
* It has many Translations OOTB, and is easily localizable
* It has been tested in Firefox 3.5+, Internet Explorer 7 & 8, Safari 4, Opera 
10 and Chrome
* BSD licensed

There are other opinions 
http://stackoverflow.com/questions/1141073/whats-the-best-wysiwyg-editor-for-use-with-jquery
I noticed experimental RTL feature for jwysiwyg 
http://akzhan.github.com/jwysiwyg/examples/07-enable-rtl.html but did not find 
how it works and it looks poor compared with elRTE (it's extendable but we are 
not much interested, we need something ready OOTB). I found 
http://aloha-editor.com (HTML5 editor) surprising, but I did not experiment a 
lot, for instance I did not find how to edit images...)

To summarize elRTE has only one drawback: even minified it's still 160 kB, but 
we will load it only on purpose.

I have updated jquery-ui to 1.8.6 (from 1.8.2, current elrte embeds 1.8.5). BTW 
Sascha, why did you remove the i18n js files? Also I guess we don't need 
ui-themes because they are already in 
framework\images\webapp\images\jquery\ui\css (also do we really need them?)

On the size side: I have removed ui-development-bundle. Do we need 
framework\images\webapp\images\jquery\plugins\validate\lib? I don't think so. 
Even it's not a big deal (since it's only place taken on disk, not loaded with 
OFBiz), I think it's better to prune as much as possible.

If we look back to Dojo and Prototype, they were respectively 4.3 MB and 311 
kB, calendarselect being 44 kB, htmledit 27 kB and flotr 309 kB (flot is almost 
the same)

Now we have 2.4 MB for all jQuery, plugins being 2 MB of it. If we look at 
memory footprint though, jQuery alone [according to 
wikipedia|http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks] is 
(24 kB minified & gzipped) but with plugins is more than 
Prototype-script.aculo.us (46�278 kB) and even Dojo (28 kB minified & gzipped). 
For Dojo I'm a bit suprised, I guess it needs more with the src 
sub-directories, like plugins for jQuery.




> 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