Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-02-10 22:52:51

brice
New member
Registered: 2006-02-03
Posts: 9

MINIMAL XINHA (Small footprint for distribution in web apps)

Well, I managed to get a pretty editor sized down to *977k*. NOTE: after playing around for quite some time, I found that you *NEED* enterparagraphs plugin in the plugins directory for the editor to load at all.

I am still disappointed that I can't get it much smaller than 977k. The plugins I'm using are:

xinha_plugins = xinha_plugins ? xinha_plugins :
      [
       'CharacterMap',
       'EditTag',
       'FullPage',
       'FullScreen',
       'GetHtml',
       'HorizontalRule',
       'ListType',
       'PasteText',
       'QuickTag',
       'TableOperations'
      ];

  (and as noted above, I've included Enterparagraphs plugin in the plugins directory)

I've slso stripped /examples, /skins, /lang, and the "lang" directory from each plugin directory.

Has anyone else tried to make a small footprint Xinha suitable for distribution ??

~ Brice

Offline

#2 2006-02-14 06:20:55

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: MINIMAL XINHA (Small footprint for distribution in web apps)

Best would be to compress the js code. there´s a ticket about this http://xinha.python-hosting.com/ticket/115.

I´d like to have a crunching script for php, to crunch the code on the fly.
Anyone know something like this?

Offline

#3 2006-02-20 02:34:17

brice
New member
Registered: 2006-02-03
Posts: 9

Re: MINIMAL XINHA (Small footprint for distribution in web apps)

Ray,

  The user is still going to have to download all the extra plugins, etc. to install the webapp. 5+MB is pretty heft IMO..

~ Brice

Offline

#4 2006-02-20 22:18:34

virtualkiwi
New member
From: Nova Zelândia
Registered: 2006-02-20
Posts: 2
Website

Re: MINIMAL XINHA (Small footprint for distribution in web apps)

I've done a bit better. I've managed to get it down to 517k but this is still a lot bigger than I'd like.
My plugins are:
      [
       'CharacterMap',
       'ContextMenu',
    'FullScreen',
       'ListType',
       'Stylist',
       'TableOperations'
      ];
I'd really like to get rid of FullScreen, but Xinha won't load without it, and I haven't been able to figure out what code in htmlarea.js I need to delete to make it go away.
I'd also like to be able to strip out all the code for dealing with multiple instances of the editor in the same page, as this will not occur the way I'm using it, but I've had a bit of a time figuring out all the functions I can strip without breaking Xinha.

Offline

#5 2006-04-12 01:55:39

brice
New member
Registered: 2006-02-03
Posts: 9

Re: MINIMAL XINHA (Small footprint for distribution in web apps)

Really just a shame*full* bump smile

  I'd like to continue discussion on this matter if anyone else is interested. Perhaps we could "fork" a nightly Xinha that uses a javascript compressor & comes with the minimum amount of plugins? ... of course others should be able to be "dropped" in.

~ Brice

Offline

#6 2006-04-12 02:04:51

brice
New member
Registered: 2006-02-03
Posts: 9

Re: MINIMAL XINHA (Small footprint for distribution in web apps)

ray wrote:

Best would be to compress the js code. there´s a ticket about this http://xinha.python-hosting.com/ticket/115.

I´d like to have a crunching script for php, to crunch the code on the fly.
Anyone know something like this?

I came across one during my Smarty investigations... it acts as a "post-filter", applying itself after a smarty template has been parsed. You can check it out here;
http://smarty.incutio.com/?page=jStrip

~ Brice

Offline

#7 2006-04-12 03:32:35

steveo125
Xinha Community Member
Registered: 2006-04-04
Posts: 24

Re: MINIMAL XINHA (Small footprint for distribution in web apps)

Any compression method needs to be easily repeatable by people who download/mod xinha.  I've been given a compressed / modified version of FCKeditor to work on and it's a nightmare.  So developers need to be able to get their hands on the formated code, change it and then compress it afterwards for release.

Offline

Board footer

Powered by FluxBB